*** empty log message ***

This commit is contained in:
hyung-hwan 2007-02-01 09:51:40 +00:00
parent 329c058715
commit b9fcb8d577
8 changed files with 138 additions and 59 deletions

View File

@ -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

View File

@ -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 $<

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

@ -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) $<

View File

@ -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 $<

View File

@ -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) $<

View File

@ -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) $<

View File

@ -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) $<

View File

@ -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) $<