qse/ase/lsp/makefile.in

94 lines
1.8 KiB
Makefile
Raw Normal View History

2007-03-24 04:53:02 +00:00
#
2007-03-25 15:02:54 +00:00
# $Id: makefile.in,v 1.16 2007-03-25 15:02:54 bacon Exp $
2007-03-24 04:53:02 +00:00
#
2007-02-21 04:18:09 +00:00
2007-03-24 04:53:02 +00:00
NAME = aselsp
2005-02-04 15:39:11 +00:00
CC = @CC@
2006-12-05 03:38:11 +00:00
AR = ar
2007-03-24 04:53:02 +00:00
MAKE = @MAKE@
2007-02-21 04:18:09 +00:00
RANLIB = @RANLIB@
2006-10-22 13:10:46 +00:00
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
2005-02-04 15:39:11 +00:00
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
2007-03-24 04:53:02 +00:00
MODE = @BUILDMODE@
2005-02-04 15:39:11 +00:00
2007-03-25 15:02:54 +00:00
OUT_DIR = ../$(MODE)/lib
2007-03-24 04:53:02 +00:00
OUT_FILE = $(OUT_DIR)/lib$(NAME).a
2007-02-21 04:18:09 +00:00
2007-03-24 04:53:02 +00:00
TMP_DIR = $(MODE)
2005-02-04 15:39:11 +00:00
2007-03-24 04:53:02 +00:00
OBJ_FILES = \
$(TMP_DIR)/lsp.o \
$(TMP_DIR)/name.o \
$(TMP_DIR)/mem.o \
$(TMP_DIR)/env.o \
$(TMP_DIR)/err.o \
$(TMP_DIR)/eval.o \
$(TMP_DIR)/read.o \
$(TMP_DIR)/print.o \
$(TMP_DIR)/misc.o \
$(TMP_DIR)/prim.o \
$(TMP_DIR)/prim_prog.o \
$(TMP_DIR)/prim_let.o \
$(TMP_DIR)/prim_compar.o \
$(TMP_DIR)/prim_math.o
2007-03-25 15:02:54 +00:00
lib: $(OUT_FILE)
2007-03-24 04:53:02 +00:00
$(OUT_FILE): $(OBJ_FILES) $(OUT_DIR)
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi
$(TMP_DIR)/lsp.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c lsp.c
$(TMP_DIR)/name.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c name.c
$(TMP_DIR)/mem.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c mem.c
$(TMP_DIR)/env.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c env.c
$(TMP_DIR)/err.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c err.c
$(TMP_DIR)/eval.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c eval.c
$(TMP_DIR)/read.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c read.c
$(TMP_DIR)/print.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c print.c
2005-02-04 15:39:11 +00:00
2007-03-24 04:53:02 +00:00
$(TMP_DIR)/misc.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c misc.c
$(TMP_DIR)/prim.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c prim.c
$(TMP_DIR)/prim_prog.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c prim_prog.c
$(TMP_DIR)/prim_let.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c prim_let.c
$(TMP_DIR)/prim_compar.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c prim_compar.c
$(TMP_DIR)/prim_math.o: $(TMP_DIR)
$(CC) $(CFLAGS) -o $@ -c prim_math.c
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
clean:
rm -rf $(OUT_FILE) $(OBJ_FILES)
2007-02-21 04:18:09 +00:00