qse/ase/awk/makefile.in

153 lines
3.7 KiB
Makefile
Raw Normal View History

2007-03-24 04:45:35 +00:00
#
2007-04-22 13:55:18 +00:00
# $Id: makefile.in,v 1.42 2007-04-22 13:51:44 bacon Exp $
2007-03-24 04:45:35 +00:00
#
2005-09-30 09:40:15 +00:00
2007-03-24 04:45:35 +00:00
NAME = aseawk
2007-01-18 08:36:36 +00:00
2007-04-10 07:09:55 +00:00
TOP_BUILDDIR = @abs_top_builddir@
TOP_INSTALLDIR = @prefix@/ase
2007-04-06 14:31:31 +00:00
2005-09-30 09:40:15 +00:00
CC = @CC@
2007-04-22 13:55:18 +00:00
CXX = @CXX@
2006-12-05 03:24:04 +00:00
AR = ar
2006-12-05 03:32:22 +00:00
RANLIB = @RANLIB@
2007-01-28 11:56:07 +00:00
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
2007-04-22 13:55:18 +00:00
CXXFLAGS = @CXXFLAGS@ -I@abs_top_builddir@/..
2005-09-30 09:40:15 +00:00
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
2007-03-24 04:45:35 +00:00
MODE = @BUILDMODE@
2005-09-30 09:40:15 +00:00
2007-04-05 10:14:36 +00:00
JAVAC = @JAVAC@
2007-04-05 10:37:59 +00:00
JAR = @JAR@
2007-04-05 10:14:36 +00:00
CFLAGS_JNI = @CFLAGS_JNI@
JNI = @JNI@
2007-04-06 15:18:31 +00:00
LIBTOOL_COMPILE = ../libtool --mode=compile
2007-04-10 07:09:55 +00:00
LIBTOOL_LINK = ../libtool --mode=link
2007-04-06 15:18:31 +00:00
2007-03-25 15:02:54 +00:00
OUT_DIR = ../$(MODE)/lib
2007-04-05 10:37:59 +00:00
OUT_FILE_LIB = $(OUT_DIR)/lib$(NAME).a
2007-04-06 15:18:31 +00:00
OUT_FILE_JNI = $(OUT_DIR)/lib$(NAME)_jni.la
2007-04-22 13:55:18 +00:00
OUT_FILE_LIB_CXX = $(OUT_DIR)/lib$(NAME)++.a
2007-04-05 10:37:59 +00:00
OUT_FILE_JAR = $(OUT_DIR)/$(NAME).jar
2007-01-18 08:36:36 +00:00
2007-03-24 04:45:35 +00:00
TMP_DIR = $(MODE)
2007-04-22 13:55:18 +00:00
TMP_DIR_CXX = $(TMP_DIR)/cxx
2007-01-18 08:36:36 +00:00
2007-04-05 10:37:59 +00:00
OBJ_FILES_LIB = \
2007-03-24 04:45:35 +00:00
$(TMP_DIR)/awk.o \
$(TMP_DIR)/err.o \
$(TMP_DIR)/tree.o \
$(TMP_DIR)/tab.o \
$(TMP_DIR)/map.o \
$(TMP_DIR)/parse.o \
$(TMP_DIR)/run.o \
$(TMP_DIR)/rec.o \
$(TMP_DIR)/val.o \
$(TMP_DIR)/func.o \
$(TMP_DIR)/misc.o \
$(TMP_DIR)/extio.o \
$(TMP_DIR)/rex.o
2007-04-06 15:18:31 +00:00
OBJ_FILES_JNI = $(TMP_DIR)/jni.o
2007-04-22 13:55:18 +00:00
OBJ_FILES_LIB_CXX = \
$(OBJ_FILES_LIB) \
$(TMP_DIR)/cxx/Awk.o
2007-04-06 15:18:31 +00:00
OBJ_FILES_SO = $(OBJ_FILES_LIB:.o=.lo) $(OBJ_FILES_JNI:.o=.lo)
2007-04-05 10:37:59 +00:00
OBJ_FILES_JAR = \
$(TMP_DIR)/ase/awk/Awk.class \
$(TMP_DIR)/ase/awk/StdAwk.class \
$(TMP_DIR)/ase/awk/Extio.class \
$(TMP_DIR)/ase/awk/Exception.class
2007-04-05 10:14:36 +00:00
lib: build$(JNI)
2007-04-22 13:55:18 +00:00
build: $(OUT_FILE_LIB) $(OUT_FILE_LIB_CXX)
2007-04-05 10:14:36 +00:00
buildjni: build $(OUT_FILE_JNI)
2007-03-25 15:02:54 +00:00
2007-04-22 13:55:18 +00:00
$(OUT_FILE_LIB): $(TMP_DIR) $(OUT_DIR) $(OBJ_FILES_LIB)
2007-04-05 10:37:59 +00:00
$(AR) cr $(OUT_FILE_LIB) $(OBJ_FILES_LIB)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE_LIB); fi
2007-04-05 10:14:36 +00:00
2007-04-10 07:09:55 +00:00
$(OUT_FILE_JNI): $(TMP_DIR) $(OBJ_FILES_JNI) $(OBJ_FILES_JAR) $(OUT_FILE_LIB)
2007-04-10 07:34:44 +00:00
$(LIBTOOL_LINK) $(CC) -rpath $(TOP_INSTALLDIR)/lib -version-info 1:0:0 -o $(OUT_FILE_JNI) $(OBJ_FILES_SO) -lm -L$(OUT_DIR) -l$(NAME) -lasecmn -laseutl
2007-04-10 11:58:08 +00:00
$(JAR) -Mcvf $(OUT_FILE_JAR) -C $(TMP_DIR) ase
2007-03-24 04:45:35 +00:00
2007-04-22 13:55:18 +00:00
$(OUT_FILE_LIB_CXX): $(TMP_DIR_CXX) $(OUT_DIR) $(OBJ_FILES_LIB_CXX)
$(AR) cr $(OUT_FILE_LIB_CXX) $(OBJ_FILES_LIB_CXX)
if [ "$(RANLIB)" = "ranlib" ]; then ranlib $(OUT_FILE_LIB_CXX); fi
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/awk.o: awk.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c awk.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/err.o: err.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c err.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/tree.o: tree.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c tree.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/tab.o: tab.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c tab.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/map.o: map.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c map.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/parse.o: parse.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c parse.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/run.o: run.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c run.c
2005-09-30 09:40:15 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/rec.o: rec.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c rec.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/val.o: val.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c val.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/func.o: func.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c func.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/misc.o: misc.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c misc.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/extio.o: extio.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c extio.c
2007-03-24 04:45:35 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/rex.o: rex.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) -o $@ -c rex.c
2007-04-04 14:45:52 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/jni.o: jni.c
2007-04-06 15:18:31 +00:00
$(LIBTOOL_COMPILE) $(CC) $(CFLAGS) $(CFLAGS_JNI) -o $@ -c jni.c
2007-04-06 14:31:31 +00:00
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/ase/awk/Awk.class:
2007-04-05 10:37:59 +00:00
$(JAVAC) -classpath ../.. -d $(TMP_DIR) Awk.java
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/ase/awk/StdAwk.class:
2007-04-05 10:37:59 +00:00
$(JAVAC) -classpath ../.. -d $(TMP_DIR) StdAwk.java
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/ase/awk/Extio.class:
2007-04-05 10:37:59 +00:00
$(JAVAC) -classpath ../.. -d $(TMP_DIR) Extio.java
2007-04-10 07:26:06 +00:00
$(TMP_DIR)/ase/awk/Exception.class:
2007-04-05 10:37:59 +00:00
$(JAVAC) -classpath ../.. -d $(TMP_DIR) Exception.java
2007-04-22 13:55:18 +00:00
$(TMP_DIR)/cxx/Awk.o:
$(CXX) $(CXXFLAGS) -o $@ -c Awk.cpp
2007-03-24 04:45:35 +00:00
$(OUT_DIR):
mkdir -p $(OUT_DIR)
$(TMP_DIR):
mkdir -p $(TMP_DIR)
2007-04-22 13:55:18 +00:00
$(TMP_DIR_CXX): $(TMP_DIR)
mkdir -p $(TMP_DIR)/cxx
2007-03-24 04:45:35 +00:00
clean:
2007-04-22 13:55:18 +00:00
rm -rf $(OUT_FILE_LIB) $(OUT_FILE_JNI) $(OUT_FILE_JAR) $(OUT_FILE_LIB_CXX) $(OBJ_FILES_LIB) $(OBJ_FILES_JNI) $(OBJ_FILES_JAR) $(OBJ_FILES_LIB_CXX)
2007-01-18 08:36:36 +00:00