qse/ase/awk/makefile.bcc

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2006-11-14 10:24:20 +00:00
OUT = aseawk
C_SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \
2006-10-03 14:43:38 +00:00
run.c rec.c val.c func.c misc.c extio.c rex.c
2006-11-14 10:24:20 +00:00
JNI_SRCS = $(C_SRCS) jni.c
JAVA_SRCS = Awk.java Exception.java Extio.java
C_OBJS = $(C_SRCS:.c=.obj)
JNI_OBJS = $(JNI_SRCS:.c=.obj)
JAVA_OBJS = $(JAVA_SRCS:.java=.class)
JNI_INC = \
/I"C:\Program Files\Java\jdk1.5.0_09\include" \
/I"C:\Program Files\Java\jdk1.5.0_09\include\win32"
2005-09-30 09:40:15 +00:00
CC = bcc32
2006-11-14 10:24:20 +00:00
LD = ilink32
AR = tlib
JAVAC = javac
CFLAGS_COMMON = -O2 -WM -WU -RT- -w -I../.. $(JNI_INC)
2006-10-28 05:24:08 +00:00
CFLAGS_RELEASE = $(CFLAGS_COMMON) -DNDEBUG
CFLAGS_DEBUG = $(CFLAGS_COMMON) -D_DEBUG
CFLAGS = $(CFLAGS_DEBUG)
2006-11-14 10:24:20 +00:00
JAVACFLAGS = -classpath ../..
LDFLAGS = -Tpd -ap -Gn -L"c:\program files\borland\bds\4.0\lib"
STARTUP = c0d32w.obj
LIBS = import32.lib cw32mt.lib
2005-09-30 09:40:15 +00:00
2006-11-14 10:24:20 +00:00
all: lib jni
lib: $(C_OBJS)
$(AR) $(OUT).lib @&&!
2005-09-30 09:40:15 +00:00
+-$(**: = &^
+-)
!
2006-11-14 10:24:20 +00:00
jni: $(JNI_OBJS) $(JAVA_OBJS)
$(LD) $(LDFLAGS) $(STARTUP) $(JNI_OBJS),$(OUT).dll,,$(LIBS),,
2005-09-30 09:40:15 +00:00
clean:
2006-11-14 10:24:20 +00:00
-del $(OBJS) $(OUT).lib $(OUT).dll *.obj *.class
2005-09-30 09:40:15 +00:00
2006-11-14 10:24:20 +00:00
.SUFFIXES: .c .obj .java .class
2005-09-30 09:40:15 +00:00
.c.obj:
$(CC) $(CFLAGS) -c $<
2006-11-14 10:24:20 +00:00
.java.class:
$(JAVAC) $(JAVACFLAGS) $<