2007-05-02 01:07:00 +00:00
|
|
|
#
|
|
|
|
# $Id: makefile.in,v 1.3 2007/04/30 08:32:50 bacon Exp $
|
|
|
|
#
|
|
|
|
|
|
|
|
NAME = aseutl
|
|
|
|
|
2008-06-07 04:19:57 +00:00
|
|
|
TOP_DIR = @abs_top_builddir@
|
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
CC = @CC@
|
2008-02-16 04:39:40 +00:00
|
|
|
AR = @AR@
|
2007-05-02 01:07:00 +00:00
|
|
|
MAKE = @MAKE@
|
|
|
|
RANLIB = @RANLIB@
|
2008-06-07 04:19:57 +00:00
|
|
|
CFLAGS = @CFLAGS@ -I$(TOP_DIR)/inc
|
2007-05-02 01:07:00 +00:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
MODE = @BUILDMODE@
|
|
|
|
|
2008-06-07 04:19:57 +00:00
|
|
|
OUT_DIR = $(TOP_DIR)/out/$(MODE)/lib
|
2007-05-02 01:07:00 +00:00
|
|
|
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
|
|
|
|
|
|
|
|
TMP_DIR = $(MODE)
|
|
|
|
|
|
|
|
OBJ_FILES = \
|
|
|
|
$(TMP_DIR)/main.o \
|
|
|
|
$(TMP_DIR)/ctype.o \
|
2008-02-03 05:27:18 +00:00
|
|
|
$(TMP_DIR)/stdio.o \
|
|
|
|
$(TMP_DIR)/http.o \
|
2008-06-04 03:00:14 +00:00
|
|
|
$(TMP_DIR)/getopt.o \
|
2008-06-10 00:28:58 +00:00
|
|
|
$(TMP_DIR)/assert.o
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
lib: $(OUT_FILE)
|
|
|
|
|
|
|
|
$(OUT_FILE): $(TMP_DIR) $(OBJ_FILES) $(OUT_DIR)
|
|
|
|
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
|
2008-02-16 08:35:40 +00:00
|
|
|
if [ ! -z "$(RANLIB)" ]; then $(RANLIB) $(OUT_FILE); fi
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
$(TMP_DIR)/main.o: main.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c main.c
|
|
|
|
|
|
|
|
$(TMP_DIR)/ctype.o: ctype.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c ctype.c
|
|
|
|
|
|
|
|
$(TMP_DIR)/stdio.o: stdio.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c stdio.c
|
|
|
|
|
2008-02-03 05:27:18 +00:00
|
|
|
$(TMP_DIR)/http.o: http.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c http.c
|
|
|
|
|
2008-03-18 06:35:02 +00:00
|
|
|
$(TMP_DIR)/getopt.o: getopt.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c getopt.c
|
|
|
|
|
2008-06-04 03:00:14 +00:00
|
|
|
$(TMP_DIR)/assert.o: assert.c
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c assert.c
|
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
$(OUT_DIR):
|
|
|
|
mkdir -p $(OUT_DIR)
|
|
|
|
|
|
|
|
$(TMP_DIR):
|
|
|
|
mkdir -p $(TMP_DIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OUT_FILE) $(OBJ_FILES)
|
|
|
|
|