2007-05-02 01:07:00 +00:00
|
|
|
#
|
|
|
|
# $Id: makefile.in,v 1.3 2007/04/30 05:55:36 bacon Exp $
|
|
|
|
#
|
|
|
|
|
|
|
|
NAME = asecmn
|
|
|
|
|
2008-06-05 04:26:39 +00:00
|
|
|
TOP_DIR = @abs_top_builddir@
|
|
|
|
|
2008-06-10 04:23:38 +00:00
|
|
|
PREFIX = @prefix@
|
|
|
|
LIBDIR = $(PREFIX)/lib
|
|
|
|
|
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-05 04:26:39 +00:00
|
|
|
CFLAGS = @CFLAGS@ -I$(TOP_DIR)/inc
|
2007-05-02 01:07:00 +00:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
MODE = @BUILDMODE@
|
|
|
|
|
2008-06-10 04:23:38 +00:00
|
|
|
LIBTOOL_COMPILE = $(TOP_DIR)/libtool --mode=compile
|
|
|
|
LIBTOOL_LINK = $(TOP_DIR)/libtool --mode=link
|
|
|
|
|
2008-06-05 04:26:39 +00:00
|
|
|
OUT_DIR = $(TOP_DIR)/out/$(MODE)/lib
|
2008-06-10 04:23:38 +00:00
|
|
|
OUT_FILE = $(OUT_DIR)/lib$(NAME).la
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
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 \
|
2007-05-02 01:07:00 +00:00
|
|
|
$(TMP_DIR)/misc.o
|
|
|
|
|
2008-06-10 04:23:38 +00:00
|
|
|
OBJ_FILES_SO = $(OBJ_FILES:.o=.lo)
|
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
lib: $(OUT_FILE)
|
|
|
|
|
|
|
|
$(OUT_FILE): $(TMP_DIR) $(OBJ_FILES) $(OUT_DIR)
|
2008-06-10 04:23:38 +00:00
|
|
|
#$(AR) cr $(OUT_FILE) $(OBJ_FILES)
|
|
|
|
$(LIBTOOL_LINK) $(CC) -rpath $(LIBDIR) -version-info 1:0:0 -o $@ $(OBJ_FILES_SO) -L$(OUT_DIR)
|
|
|
|
#[ -n "$(RANLIB)" ] && $(RANLIB) $(OUT_FILE)
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
$(TMP_DIR)/mem.o: mem.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c mem.c
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2008-03-18 22:08:36 +00:00
|
|
|
$(TMP_DIR)/str_bas.o: str_bas.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c str_bas.c
|
2008-03-18 22:08:36 +00:00
|
|
|
|
|
|
|
$(TMP_DIR)/str_cnv.o: str_cnv.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c str_cnv.c
|
2008-03-18 22:08:36 +00:00
|
|
|
|
|
|
|
$(TMP_DIR)/str_dyn.o: str_dyn.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c str_dyn.c
|
2007-05-02 01:07:00 +00:00
|
|
|
|
2008-02-13 01:57:21 +00:00
|
|
|
$(TMP_DIR)/map.o: map.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c map.c
|
2008-02-13 01:57:21 +00:00
|
|
|
|
2008-03-04 03:31:41 +00:00
|
|
|
$(TMP_DIR)/rex.o: rex.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c rex.c
|
2008-03-04 03:31:41 +00:00
|
|
|
|
2007-05-02 01:07:00 +00:00
|
|
|
$(TMP_DIR)/misc.o: misc.c
|
2008-06-10 04:23:38 +00:00
|
|
|
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c misc.c
|
2007-05-02 01:07:00 +00:00
|
|
|
|
|
|
|
$(OUT_DIR):
|
|
|
|
mkdir -p $(OUT_DIR)
|
|
|
|
|
|
|
|
$(TMP_DIR):
|
|
|
|
mkdir -p $(TMP_DIR)
|
|
|
|
|
|
|
|
clean:
|
2008-06-10 04:23:38 +00:00
|
|
|
rm -rf $(OUT_FILE) $(OBJ_FILES) $(OBJ_FILES_SO)
|
2007-05-02 01:07:00 +00:00
|
|
|
|