*** empty log message ***
This commit is contained in:
parent
15267f63fd
commit
c41fc93e6a
@ -1,38 +1,25 @@
|
|||||||
OUT = libaseawk.a
|
OUT = aseawk
|
||||||
|
|
||||||
C_SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \
|
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
|
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)
|
C_OBJS = $(C_SRCS:.c=.o)
|
||||||
JNI_OBJS = $(JNI_SRCS:.c=.o)
|
|
||||||
JAVA_OBJS = $(JAVA_SRCS:.java=.class)
|
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
AR = ar
|
AR = ar
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/.. -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(PLATFORM)
|
CFLAGS = @CFLAGS@ -I@abs_top_builddir@/..
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
|
||||||
JAVAC = javac
|
|
||||||
JAVACFLAGS = -classpath ../..
|
|
||||||
|
|
||||||
all: lib
|
all: lib
|
||||||
|
|
||||||
lib: $(C_OBJS)
|
lib: $(C_OBJS)
|
||||||
$(AR) cr $(OUT) $(OBJS)
|
$(AR) cr lib$(OUT).a $(C_OBJS)
|
||||||
|
|
||||||
jni: lib $(JNI_OBJS) $(JAVA_OBJS)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OBJS) $(OUT) *.o
|
rm -rf $(OBJS) lib$(OUT).a *.o
|
||||||
|
|
||||||
.SUFFIXES: .c .o .java .class
|
.SUFFIXES: .c .o
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c $<
|
$(CC) $(CFLAGS) -c $<
|
||||||
|
|
||||||
.java.class:
|
|
||||||
$(JAVAC) $(JAVACFLAGS) $<
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user