qse/ase/awk/makefile.in

39 lines
730 B
Makefile
Raw Normal View History

2006-10-24 04:31:07 +00:00
OUT = libaseawk.a
2005-09-30 09:40:15 +00:00
2007-01-18 08:36:36 +00:00
C_SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \
run.c rec.c val.c func.c misc.c extio.c rex.c
JNI_SRCS = jni.c
JAVA_SRCS = Exception.java Extio.java Awk.java StdAwk.java
C_OBJS = $(C_SRCS:.c=.o)
JNI_OBJS = $(JNI_SRCS:.c=.o)
JAVA_OBJS = $(JAVA_SRCS:.java=.class)
2005-09-30 09:40:15 +00:00
CC = @CC@
2006-12-05 03:24:04 +00:00
AR = ar
2006-12-05 03:32:22 +00:00
RANLIB = @RANLIB@
2007-01-18 08:36:36 +00:00
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(PLATFORM)
2005-09-30 09:40:15 +00:00
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
2007-01-18 08:36:36 +00:00
JAVAC = javac
JAVACFLAGS = -classpath ../..
all: lib
lib: $(C_OBJS)
2006-12-05 03:24:04 +00:00
$(AR) cr $(OUT) $(OBJS)
2005-09-30 09:40:15 +00:00
2007-01-18 08:36:36 +00:00
jni: lib $(JNI_OBJS) $(JAVA_OBJS)
2005-09-30 09:40:15 +00:00
clean:
rm -rf $(OBJS) $(OUT) *.o
2007-01-18 08:36:36 +00:00
.SUFFIXES: .c .o .java .class
2005-09-30 09:40:15 +00:00
.c.o:
$(CC) $(CFLAGS) -c $<
2007-01-18 08:36:36 +00:00
.java.class:
$(JAVAC) $(JAVACFLAGS) $<