2007-03-24 04:39:52 +00:00
|
|
|
#
|
2007-04-10 07:26:06 +00:00
|
|
|
# $Id: makefile.in,v 1.8 2007-04-10 07:23:49 bacon Exp $
|
2007-03-24 04:39:52 +00:00
|
|
|
#
|
2007-02-20 14:23:18 +00:00
|
|
|
|
2007-03-24 04:39:52 +00:00
|
|
|
NAME = aseutl
|
2007-02-20 14:23:18 +00:00
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
AR = ar
|
2007-03-24 04:39:52 +00:00
|
|
|
MAKE = @MAKE@
|
2007-02-20 14:23:18 +00:00
|
|
|
RANLIB = @RANLIB@
|
|
|
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
2007-03-24 04:39:52 +00:00
|
|
|
MODE = @BUILDMODE@
|
2007-02-20 14:23:18 +00:00
|
|
|
|
2007-03-25 15:03:25 +00:00
|
|
|
OUT_DIR = ../$(MODE)/lib
|
2007-03-24 04:39:52 +00:00
|
|
|
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
|
2007-02-20 14:23:18 +00:00
|
|
|
|
2007-03-24 04:39:52 +00:00
|
|
|
TMP_DIR = $(MODE)
|
2007-02-20 14:23:18 +00:00
|
|
|
|
2007-03-24 04:39:52 +00:00
|
|
|
OBJ_FILES = \
|
|
|
|
$(TMP_DIR)/main.o \
|
|
|
|
$(TMP_DIR)/ctype.o \
|
|
|
|
$(TMP_DIR)/stdio.o
|
|
|
|
|
2007-03-25 15:03:25 +00:00
|
|
|
lib: $(OUT_FILE)
|
|
|
|
|
2007-04-10 07:09:55 +00:00
|
|
|
$(OUT_FILE): $(TMP_DIR) $(OBJ_FILES) $(OUT_DIR)
|
2007-03-24 04:39:52 +00:00
|
|
|
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
|
|
|
|
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/main.o: main.c
|
2007-03-24 04:39:52 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c main.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/ctype.o: ctype.c
|
2007-03-24 04:39:52 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c ctype.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/stdio.o: stdio.c
|
2007-03-24 04:39:52 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c stdio.c
|
2007-02-20 14:23:18 +00:00
|
|
|
|
2007-03-24 04:39:52 +00:00
|
|
|
$(OUT_DIR):
|
|
|
|
mkdir -p $(OUT_DIR)
|
|
|
|
|
|
|
|
$(TMP_DIR):
|
|
|
|
mkdir -p $(TMP_DIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OUT_FILE) $(OBJ_FILES)
|
2007-02-20 14:23:18 +00:00
|
|
|
|