*** empty log message ***

This commit is contained in:
hyung-hwan 2007-01-18 08:54:05 +00:00
parent 2a727c7796
commit 3300da439b
6 changed files with 46 additions and 3 deletions

View File

@ -25,7 +25,6 @@ lib: $(C_OBJS)
$(AR) cr $(OUT) $(OBJS) $(AR) cr $(OUT) $(OBJS)
jni: lib $(JNI_OBJS) $(JAVA_OBJS) jni: lib $(JNI_OBJS) $(JAVA_OBJS)
$(GCC)
clean: clean:
rm -rf $(OBJS) $(OUT) *.o rm -rf $(OBJS) $(OUT) *.o

44
ase/awk/makefile.lnx.gcc Normal file
View File

@ -0,0 +1,44 @@
OUT = libaseawk
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)
JNI_INCPATH= \
-I"$(JAVA_HOME)/include" \
-I"$(JAVA_HOME)/include/linux"
CC = gcc
AR = ar
LD = ld
RANLIB = ranlib
CFLAGS = -Wall -O2 -D_REENTRANT -D_THREAD_SAFE -fPIC -I../.. $(JNI_INCPATH)
LDFLAGS =
LIBS =
JAVAC = javac
JAVACFLAGS = -classpath ../..
all: lib jni
lib: $(C_OBJS)
$(AR) cr $(OUT).a $(C_OBJS)
jni: lib $(JNI_OBJS) $(JAVA_OBJS)
$(LD) -fPIC -shared -soname $(OUT).so -o $(OUT).so -L . -l aseawk jni.o
clean:
rm -rf $(C_OBJS) $(JNI_OBJS) $(JAVA_OBJS) $(OUT).a $(OUT).so *.o
.SUFFIXES: .c .o .java .class
.c.o:
$(CC) $(CFLAGS) -c $<
.java.class:
$(JAVAC) $(JAVACFLAGS) $<

View File

@ -10,8 +10,8 @@ JNI_OBJS = $(JNI_SRCS:.c=.obj)
JAVA_OBJS = $(JAVA_SRCS:.java=.class) JAVA_OBJS = $(JAVA_SRCS:.java=.class)
JNI_INCPATH = \ JNI_INCPATH = \
-I"C:\Program Files\Java\jdk1.5.0_09\include" \ -I"$(JAVA_HOME)\include" \
-I"C:\Program Files\Java\jdk1.5.0_09\include\win32" -I"$(JAVA_HOME\include\win32"
BDS_LIBPATH = -L"c:\program files\borland\bds\4.0\lib" BDS_LIBPATH = -L"c:\program files\borland\bds\4.0\lib"
CC = bcc32 CC = bcc32