qse/ase/test/awk/makefile.in

27 lines
557 B
Makefile
Raw Normal View History

2007-03-24 05:02:52 +00:00
#
2007-03-25 15:03:25 +00:00
# $Id: makefile.in,v 1.17 2007-03-25 15:02:54 bacon Exp $
2007-03-24 05:02:52 +00:00
#
2006-01-12 12:42:10 +00:00
CC = @CC@
2007-01-26 16:10:32 +00:00
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
2007-03-25 15:03:25 +00:00
LDFLAGS = @LDFLAGS@ -L@abs_top_builddir@/@BUILDMODE@/lib
2007-03-06 14:58:00 +00:00
LIBS = @LIBS@ -laseawk -lasecmn -laseutl -lm
2007-03-24 05:02:52 +00:00
MODE = @BUILDMODE@
2006-01-12 12:42:10 +00:00
2007-03-25 15:03:25 +00:00
OUT_DIR = ../../$(MODE)/bin
2006-11-18 15:36:57 +00:00
2007-03-24 05:02:52 +00:00
all: $(OUT_DIR)/aseawk $(OUT_DIR)/miniawk
2006-01-12 12:42:10 +00:00
2007-03-25 15:03:25 +00:00
$(OUT_DIR)/aseawk: $(OUT_DIR)
2007-03-24 05:02:52 +00:00
$(CC) $(CFLAGS) -o $@ awk.c $(LDFLAGS) $(LIBS)
2007-03-25 15:03:25 +00:00
$(OUT_DIR)/miniawk: $(OUT_DIR)
2007-03-24 05:02:52 +00:00
$(CC) $(CFLAGS) -o $@ mini.c $(LDFLAGS) $(LIBS)
2007-03-15 14:19:23 +00:00
2007-03-25 15:03:25 +00:00
$(OUT_DIR):
mkdir -p $(OUT_DIR)
2006-01-12 12:42:10 +00:00
clean:
2007-03-24 05:02:52 +00:00
rm -rf $(OUT_DIR)/aseawk $(OUT_DIR)/miniawk
2006-01-12 12:42:10 +00:00