2007-03-24 04:53:02 +00:00
|
|
|
#
|
2007-04-10 07:26:06 +00:00
|
|
|
# $Id: makefile.in,v 1.17 2007-04-10 07:26:06 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-04-10 07:26:06 +00:00
|
|
|
$(OUT_FILE): $(TMP_DIR) $(OBJ_FILES) $(OUT_DIR)
|
2007-03-24 04:53:02 +00:00
|
|
|
$(AR) cr $(OUT_FILE) $(OBJ_FILES)
|
|
|
|
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE); fi
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/lsp.o: lsp.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c lsp.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/name.o: name.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c name.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/mem.o: mem.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c mem.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/env.o: env.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c env.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/err.o: err.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c err.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/eval.o: eval.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c eval.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/read.o: read.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c read.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/print.o: print.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c print.c
|
2005-02-04 15:39:11 +00:00
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/misc.o: misc.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c misc.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/prim.o: prim.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c prim.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/prim_prog.o: prim_prog.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c prim_prog.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/prim_let.o: prim_let.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c prim_let.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/prim_compar.o: prim_compar.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c prim_compar.c
|
|
|
|
|
2007-04-10 07:26:06 +00:00
|
|
|
$(TMP_DIR)/prim_math.o: prim_math.c
|
2007-03-24 04:53:02 +00:00
|
|
|
$(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
|
|
|
|