From b9fcb8d57728ef8222216273300968657fc022ba Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 1 Feb 2007 09:51:40 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/descrip.mms | 2 -- ase/awk/makefile.fbsd | 20 --------------- ase/awk/makefile.sol.gcc | 44 +++++++++++++++++++++++++++++++++ ase/awk/makefile.sol64 | 20 --------------- ase/awk/makefile.sol64.gcc | 44 +++++++++++++++++++++++++++++++++ ase/test/awk/makefile.sol.gcc | 25 +++++++++++++++++++ ase/test/awk/makefile.sol64 | 17 ------------- ase/test/awk/makefile.sol64.gcc | 25 +++++++++++++++++++ 8 files changed, 138 insertions(+), 59 deletions(-) delete mode 100644 ase/awk/makefile.fbsd create mode 100644 ase/awk/makefile.sol.gcc delete mode 100644 ase/awk/makefile.sol64 create mode 100644 ase/awk/makefile.sol64.gcc create mode 100644 ase/test/awk/makefile.sol.gcc delete mode 100644 ase/test/awk/makefile.sol64 create mode 100644 ase/test/awk/makefile.sol64.gcc diff --git a/ase/awk/descrip.mms b/ase/awk/descrip.mms index 78676a01..d4cc5b3b 100644 --- a/ase/awk/descrip.mms +++ b/ase/awk/descrip.mms @@ -25,5 +25,3 @@ func.obj depends_on func.c misc.obj depends_on misc.c extio.obj depends_on extio.c rex.obj depends_on rex.c - - diff --git a/ase/awk/makefile.fbsd b/ase/awk/makefile.fbsd deleted file mode 100644 index 1f693fda..00000000 --- a/ase/awk/makefile.fbsd +++ /dev/null @@ -1,20 +0,0 @@ -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=.o) -OUT = libaseawk.a - -CC = cc -CFLAGS = -Wall -I../.. - -all: $(OBJS) - ar cr $(OUT) $(OBJS) - -clean: - rm -rf $(OBJS) $(OUT) *.obj - -.SUFFIXES: .c .o -.c.o: - $(CC) $(CFLAGS) -c $< - - - diff --git a/ase/awk/makefile.sol.gcc b/ase/awk/makefile.sol.gcc new file mode 100644 index 00000000..c770e00d --- /dev/null +++ b/ase/awk/makefile.sol.gcc @@ -0,0 +1,44 @@ +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 +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/solaris" + +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 lib$(OUT).a $(C_OBJS) + +jni: lib $(JNI_OBJS) $(JAVA_OBJS) + $(CC) -shared -o $(OUT)_jni.so $(JNI_OBJS) -lm -L. -l$(OUT) + +clean: + rm -rf $(C_OBJS) $(JNI_OBJS) $(JAVA_OBJS) lib$(OUT).a lib$(OUT).so *.o + +.SUFFIXES: .c .o .java .class +.c.o: + $(CC) $(CFLAGS) -c $< + +.java.class: + $(JAVAC) $(JAVACFLAGS) $< + diff --git a/ase/awk/makefile.sol64 b/ase/awk/makefile.sol64 deleted file mode 100644 index 91a41092..00000000 --- a/ase/awk/makefile.sol64 +++ /dev/null @@ -1,20 +0,0 @@ -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=.o) -OUT = libaseawk.a - -CC = gcc -#CFLAGS = -m64 -O2 -Wall -std=c89 -pedantic -I../.. -CFLAGS = -m64 -O2 -Wall -I../.. - -all: $(OBJS) - ar cr $(OUT) $(OBJS) - -clean: - rm -rf $(OBJS) $(OUT) *.obj - -.SUFFIXES: .c .o -.c.o: - $(CC) $(CFLAGS) -c $< - diff --git a/ase/awk/makefile.sol64.gcc b/ase/awk/makefile.sol64.gcc new file mode 100644 index 00000000..4ba2c35c --- /dev/null +++ b/ase/awk/makefile.sol64.gcc @@ -0,0 +1,44 @@ +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 +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/solaris" + +CC = gcc +AR = ar +LD = ld +RANLIB = ranlib +CFLAGS = -m64 -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 lib$(OUT).a $(C_OBJS) + +jni: lib $(JNI_OBJS) $(JAVA_OBJS) + $(CC) -shared -o $(OUT)_jni.so $(JNI_OBJS) -lm -L. -l$(OUT) + +clean: + rm -rf $(C_OBJS) $(JNI_OBJS) $(JAVA_OBJS) lib$(OUT).a lib$(OUT).so *.o + +.SUFFIXES: .c .o .java .class +.c.o: + $(CC) $(CFLAGS) -c $< + +.java.class: + $(JAVAC) $(JAVACFLAGS) $< + diff --git a/ase/test/awk/makefile.sol.gcc b/ase/test/awk/makefile.sol.gcc new file mode 100644 index 00000000..ba044183 --- /dev/null +++ b/ase/test/awk/makefile.sol.gcc @@ -0,0 +1,25 @@ +SRCS = awk.c +OBJS = $(SRCS:.c=.o) + +CC = gcc +CFLAGS = -O2 -Wall -D_REENTRANT -D_THREAD_SAFE -fPIC -I../../.. +LDFLAGS = -L../../awk +LIBS = -laseawk -lm + +all: awk + +awk: $(OBJS) + $(CC) -o $@ awk.o $(LDFLAGS) $(LIBS) + +java: + javac -classpath ../../.. Awk.java AwkApplet.java + +jrun: + java -Xms1m -Xmx2m -classpath ../../.. ase.test.awk.Awk + +clean: + rm -rf *.o *.class awk + +.SUFFIXES: .c .o +.c.o: + $(CC) -c $(CFLAGS) $< diff --git a/ase/test/awk/makefile.sol64 b/ase/test/awk/makefile.sol64 deleted file mode 100644 index cd784815..00000000 --- a/ase/test/awk/makefile.sol64 +++ /dev/null @@ -1,17 +0,0 @@ -CC = gcc -CFLAGS = -m64 -Wall -O2 -I../../.. -D__STAND_ALONE -LDFLAGS = -m64 -L../../bas -L../../awk -LIBS = -lxpawk -lm - -all: awk - -awk: awk.o - $(CC) -o awk awk.o $(LDFLAGS) $(LIBS) - -clean: - rm -f *.o awk - -.SUFFIXES: .c .o -.c.o: - $(CC) -c $(CFLAGS) $< - diff --git a/ase/test/awk/makefile.sol64.gcc b/ase/test/awk/makefile.sol64.gcc new file mode 100644 index 00000000..f1de08af --- /dev/null +++ b/ase/test/awk/makefile.sol64.gcc @@ -0,0 +1,25 @@ +SRCS = awk.c +OBJS = $(SRCS:.c=.o) + +CC = gcc +CFLAGS = -m64 -O2 -Wall -D_REENTRANT -D_THREAD_SAFE -fPIC -I../../.. +LDFLAGS = -L../../awk +LIBS = -laseawk -lm + +all: awk + +awk: $(OBJS) + $(CC) -o $@ awk.o $(LDFLAGS) $(LIBS) + +java: + javac -classpath ../../.. Awk.java AwkApplet.java + +jrun: + java -Xms1m -Xmx2m -classpath ../../.. ase.test.awk.Awk + +clean: + rm -rf *.o *.class awk + +.SUFFIXES: .c .o +.c.o: + $(CC) -c $(CFLAGS) $<