qse/ase/cmn/makefile.in

66 lines
1.2 KiB
Makefile
Raw Normal View History

#
# $Id: makefile.in,v 1.3 2007/04/30 05:55:36 bacon Exp $
#
NAME = asecmn
CC = @CC@
2008-02-16 04:39:40 +00:00
AR = @AR@
MAKE = @MAKE@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
MODE = @BUILDMODE@
OUT_DIR = ../$(MODE)/lib
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
TMP_DIR = $(MODE)
OBJ_FILES = \
$(TMP_DIR)/mem.o \
2008-03-18 22:08:36 +00:00
$(TMP_DIR)/str_bas.o \
$(TMP_DIR)/str_cnv.o \
$(TMP_DIR)/str_dyn.o \
2008-02-13 01:57:21 +00:00
$(TMP_DIR)/map.o \
2008-03-04 03:31:41 +00:00
$(TMP_DIR)/rex.o \
$(TMP_DIR)/misc.o
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
$(TMP_DIR)/mem.o: mem.c
$(CC) $(CFLAGS) -o $@ -c mem.c
2008-03-18 22:08:36 +00:00
$(TMP_DIR)/str_bas.o: str_bas.c
$(CC) $(CFLAGS) -o $@ -c str_bas.c
$(TMP_DIR)/str_cnv.o: str_cnv.c
$(CC) $(CFLAGS) -o $@ -c str_cnv.c
$(TMP_DIR)/str_dyn.o: str_dyn.c
$(CC) $(CFLAGS) -o $@ -c str_dyn.c
2008-02-13 01:57:21 +00:00
$(TMP_DIR)/map.o: map.c
$(CC) $(CFLAGS) -o $@ -c map.c
2008-03-04 03:31:41 +00:00
$(TMP_DIR)/rex.o: rex.c
$(CC) $(CFLAGS) -o $@ -c rex.c
$(TMP_DIR)/misc.o: misc.c
$(CC) $(CFLAGS) -o $@ -c misc.c
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
clean:
rm -rf $(OUT_FILE) $(OBJ_FILES)