qse/ase/test/awk/makefile.in

60 lines
1.6 KiB
Makefile
Raw Normal View History

2007-03-24 05:02:52 +00:00
#
2007-04-12 11:28:14 +00:00
# $Id: makefile.in,v 1.23 2007-04-12 11:19:11 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-04-10 08:04:52 +00:00
JAVAC = @JAVAC@
JAR = @JAR@
CFLAGS_JNI = @CFLAGS_JNI@
JNI = @JNI@
2007-04-10 11:58:08 +00:00
LIB_DIR = ../../$(MODE)/lib
2007-03-25 15:03:25 +00:00
OUT_DIR = ../../$(MODE)/bin
2007-04-10 11:58:08 +00:00
TMP_DIR = $(MODE)
ASEAWK_LIB =
2006-11-18 15:36:57 +00:00
2007-04-10 08:04:52 +00:00
all: build$(JNI)
2007-04-12 11:28:14 +00:00
build: $(TMP_DIR) $(OUT_DIR) $(OUT_DIR)/aseawk $(OUT_DIR)/aseawk_mini
2007-04-10 08:04:52 +00:00
2007-04-12 11:28:14 +00:00
buildjni: build $(OUT_DIR)/aseawk.jar $(OUT_DIR)/AseAwkApplet.html
2006-01-12 12:42:10 +00:00
2007-04-11 09:39:46 +00:00
$(OUT_DIR)/aseawk: awk.c
2007-03-24 05:02:52 +00:00
$(CC) $(CFLAGS) -o $@ awk.c $(LDFLAGS) $(LIBS)
2007-04-11 09:39:46 +00:00
$(OUT_DIR)/aseawk_mini: mini.c
2007-03-24 05:02:52 +00:00
$(CC) $(CFLAGS) -o $@ mini.c $(LDFLAGS) $(LIBS)
2007-03-15 14:19:23 +00:00
2007-04-12 11:28:14 +00:00
$(OUT_DIR)/aseawk.jar: $(TMP_DIR)/AseAwkPanel.class $(TMP_DIR)/AseAwk.class $(TMP_DIR)/AseAwkApplet.class
2007-04-10 11:58:08 +00:00
cd $(TMP_DIR); $(JAR) -xvf ../$(LIB_DIR)/aseawk.jar
2007-04-12 11:28:14 +00:00
cd $(TMP_DIR); $(JAR) -cvfm ../$@ ../manifest *.class ase
2007-04-10 14:51:09 +00:00
rm -rf $(TMP_DIR)/ase
2007-04-10 11:58:08 +00:00
2007-04-12 11:28:14 +00:00
$(TMP_DIR)/AseAwkPanel.class: AseAwkPanel.java
2007-04-12 10:51:14 +00:00
$(JAVAC) -classpath $(TMP_DIR):$(LIB_DIR)/aseawk.jar -d $(TMP_DIR) AseAwkPanel.java
2007-04-12 11:28:14 +00:00
$(TMP_DIR)/AseAwk.class: AseAwk.java
$(JAVAC) -classpath $(TMP_DIR):$(LIB_DIR)/aseawk.jar -d $(TMP_DIR) AseAwk.java
$(TMP_DIR)/AseAwkApplet.class: AseAwkApplet.java
2007-04-10 11:58:08 +00:00
$(JAVAC) -classpath $(TMP_DIR):$(LIB_DIR)/aseawk.jar -d $(TMP_DIR) AseAwkApplet.java
2007-04-12 11:28:14 +00:00
$(OUT_DIR)/AseAwkApplet.html: AseAwkApplet.html
2007-04-10 11:58:08 +00:00
cp -pf AseAwkApplet.html $(OUT_DIR)
2007-04-10 08:04:52 +00:00
2007-03-25 15:03:25 +00:00
$(OUT_DIR):
mkdir -p $(OUT_DIR)
2007-04-10 11:58:08 +00:00
$(TMP_DIR):
mkdir -p $(TMP_DIR)
2006-01-12 12:42:10 +00:00
clean:
2007-04-10 11:58:08 +00:00
rm -rf $(OUT_DIR)/aseawk $(OUT_DIR)/aseawk_mini $(OUT_DIR)/aseawk.jar $(OUT_DIR)/AseAwkApplet.html $(TMP_DIR)/*.class
2006-01-12 12:42:10 +00:00