From 27c5b202c506ffd2b8d9a7306e546555ca15f3fb Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 14 Nov 2006 10:24:20 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/makefile.bcc | 45 +++++++++++++++++++++++++++++++-------- ase/awk/makefile.cl | 2 +- ase/test/awk/makefile.bcc | 5 ++++- 3 files changed, 41 insertions(+), 11 deletions(-) diff --git a/ase/awk/makefile.bcc b/ase/awk/makefile.bcc index 13ad96a2..3f79525a 100644 --- a/ase/awk/makefile.bcc +++ b/ase/awk/makefile.bcc @@ -1,24 +1,51 @@ -SRCS = awk.c err.c tree.c str.c tab.c map.c parse.c \ +OUT = aseawk + +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 -OBJS = $(SRCS:.c=.obj) -OUT = aseawk.lib +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" CC = bcc32 -CFLAGS_COMMON = -O2 -WM -WU -RT- -w -I../.. +LD = ilink32 +AR = tlib +JAVAC = javac + + +CFLAGS_COMMON = -O2 -WM -WU -RT- -w -I../.. $(JNI_INC) CFLAGS_RELEASE = $(CFLAGS_COMMON) -DNDEBUG CFLAGS_DEBUG = $(CFLAGS_COMMON) -D_DEBUG CFLAGS = $(CFLAGS_DEBUG) +JAVACFLAGS = -classpath ../.. -all: $(OBJS) - tlib $(OUT) @&&! +LDFLAGS = -Tpd -ap -Gn -L"c:\program files\borland\bds\4.0\lib" +STARTUP = c0d32w.obj +LIBS = import32.lib cw32mt.lib + +all: lib jni + +lib: $(C_OBJS) + $(AR) $(OUT).lib @&&! +-$(**: = &^ +-) ! -clean: - -del $(OBJS) $(OUT) *.obj +jni: $(JNI_OBJS) $(JAVA_OBJS) + $(LD) $(LDFLAGS) $(STARTUP) $(JNI_OBJS),$(OUT).dll,,$(LIBS),, -.SUFFIXES: .c .obj +clean: + -del $(OBJS) $(OUT).lib $(OUT).dll *.obj *.class + +.SUFFIXES: .c .obj .java .class .c.obj: $(CC) $(CFLAGS) -c $< +.java.class: + $(JAVAC) $(JAVACFLAGS) $< diff --git a/ase/awk/makefile.cl b/ase/awk/makefile.cl index 3a8d76ad..95fee043 100644 --- a/ase/awk/makefile.cl +++ b/ase/awk/makefile.cl @@ -33,7 +33,7 @@ jni: $(JNI_OBJS) $(JAVA_OBJS) << clean: - del $(OBJS) $(OUT) *.obj *.class + del $(OBJS) $(OUT).lib $(OUT).dll *.obj *.class .SUFFIXES: .c .obj .java .class .c.obj: diff --git a/ase/test/awk/makefile.bcc b/ase/test/awk/makefile.bcc index d3f8a99d..8b522caf 100644 --- a/ase/test/awk/makefile.bcc +++ b/ase/test/awk/makefile.bcc @@ -3,11 +3,14 @@ # -aa /subsystem:windows # -ap /subsystem:console # -ad /subsystem:native +# +# -Tpe +# -Tpd /dll CC = bcc32 LD = ilink32 CFLAGS = -O2 -WM -WU -RT- -w -I..\..\.. -LDFLAGS = -ap -L..\..\awk -L"c:\program files\borland\bds\4.0\lib" +LDFLAGS = -ap -Tpe -Gn -c -L..\..\awk -L"c:\program files\borland\bds\4.0\lib" LIBS = import32.lib cw32mt.lib aseawk.lib STARTUP = c0x32w.obj