qse/ase/lib/utl/makefile.in
2008-06-10 04:23:38 +00:00

71 lines
1.4 KiB
Makefile

#
# $Id: makefile.in,v 1.3 2007/04/30 08:32:50 bacon Exp $
#
NAME = aseutl
TOP_DIR = @abs_top_builddir@
PREFIX = @prefix@
LIBDIR = $(PREFIX)/lib
CC = @CC@
AR = @AR@
MAKE = @MAKE@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I$(TOP_DIR)/inc
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
MODE = @BUILDMODE@
LIBTOOL_COMPILE = $(TOP_DIR)/libtool --mode=compile
LIBTOOL_LINK = $(TOP_DIR)/libtool --mode=link
OUT_DIR = $(TOP_DIR)/out/$(MODE)/lib
OUT_FILE = $(OUT_DIR)/lib$(NAME).la
TMP_DIR = $(MODE)
OBJ_FILES = \
$(TMP_DIR)/main.o \
$(TMP_DIR)/ctype.o \
$(TMP_DIR)/stdio.o \
$(TMP_DIR)/http.o \
$(TMP_DIR)/getopt.o \
$(TMP_DIR)/assert.o
OBJ_FILES_SO = $(OBJ_FILES:.o=.lo)
lib: $(OUT_FILE)
$(OUT_FILE): $(TMP_DIR) $(OBJ_FILES) $(OUT_DIR)
$(LIBTOOL_LINK) $(CC) -rpath $(LIBDIR) -version-info 1:0:0 -o $@ $(OBJ_FILES_SO) -L$(OUT_DIR)
$(TMP_DIR)/main.o: main.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c main.c
$(TMP_DIR)/ctype.o: ctype.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c ctype.c
$(TMP_DIR)/stdio.o: stdio.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c stdio.c
$(TMP_DIR)/http.o: http.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c http.c
$(TMP_DIR)/getopt.o: getopt.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c getopt.c
$(TMP_DIR)/assert.o: assert.c
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c assert.c
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
clean:
rm -rf $(OUT_FILE) $(OBJ_FILES) $(OBJ_FILES_SO)