qse/ase/awk/makefile.msw.bcc

55 lines
1.2 KiB
Plaintext
Raw Normal View History

2006-11-14 10:24:20 +00:00
OUT = aseawk
2007-02-23 08:54:03 +00:00
C_SRCS = awk.c err.c tree.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-12-12 05:16:30 +00:00
JNI_SRCS = jni.c
2006-11-24 13:25:12 +00:00
JAVA_SRCS = Exception.java Extio.java Awk.java StdAwk.java
2006-11-14 10:24:20 +00:00
C_OBJS = $(C_SRCS:.c=.obj)
JNI_OBJS = $(JNI_SRCS:.c=.obj)
JAVA_OBJS = $(JAVA_SRCS:.java=.class)
2006-11-29 11:41:15 +00:00
JNI_INCPATH = \
2007-01-18 14:00:07 +00:00
-I"$(JAVA_HOME)/include" \
-I"$(JAVA_HOME)/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
2007-01-18 14:00:07 +00:00
CFLAGS_COMMON = -O2 -WM -WU -RT- -w -q -I../.. $(JNI_INCPATH)
2006-10-28 05:24:08 +00:00
CFLAGS_RELEASE = $(CFLAGS_COMMON) -DNDEBUG
2006-12-04 06:50:26 +00:00
CFLAGS_DEBUG = $(CFLAGS_COMMON) -D_DEBUG #-DDEBUG_REX
2006-10-28 05:24:08 +00:00
CFLAGS = $(CFLAGS_DEBUG)
2006-12-03 06:53:25 +00:00
#CFLAGS = $(CFLAGS_RELEASE)
2006-11-14 10:24:20 +00:00
JAVACFLAGS = -classpath ../..
2007-02-19 14:28:40 +00:00
LDFLAGS = -Tpd -ap -Gn -c -q
2006-11-14 10:24:20 +00:00
STARTUP = c0d32w.obj
LIBS = import32.lib cw32mt.lib
2007-02-23 08:54:03 +00:00
JNI_LDFLAGS = $(LDFLAGS) -L..\cmn -L..\utl
JNI_LIBS = $(LIBS) $(OUT).lib asecmn.lib aseutl.lib
2005-09-30 09:40:15 +00:00
2006-11-14 10:24:20 +00:00
all: lib jni
lib: $(C_OBJS)
2006-12-12 05:16:30 +00:00
$(AR) $(OUT).lib @&&!
2005-09-30 09:40:15 +00:00
+-$(**: = &^
+-)
!
2006-12-12 05:16:30 +00:00
jni: lib $(JNI_OBJS) $(JAVA_OBJS)
2007-02-23 08:54:03 +00:00
$(LD) $(JNI_LDFLAGS) $(STARTUP) $(JNI_OBJS),$(OUT)_jni.dll,,$(JNI_LIBS),jni.def,
2006-11-14 10:24:20 +00:00
2005-09-30 09:40:15 +00:00
clean:
2007-01-26 15:27:01 +00:00
-del $(OBJS) $(OUT).lib $(OUT)_jni.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) $<