2007-01-30 11:24:40 +00:00
|
|
|
SRCS = awk.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -O2 -Wall -D_REENTRANT -D_THREAD_SAFE -I../../..
|
|
|
|
LDFLAGS = -L../../awk
|
|
|
|
LIBS = -laseawk -lm
|
|
|
|
|
2007-02-08 03:54:18 +00:00
|
|
|
all: aseawk
|
2007-01-30 11:24:40 +00:00
|
|
|
|
2007-02-08 03:54:18 +00:00
|
|
|
aseawk: $(OBJS)
|
2007-01-30 11:24:40 +00:00
|
|
|
$(CC) -o $@ awk.o $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
java:
|
|
|
|
javac -classpath ../../.. Awk.java AwkApplet.java
|
|
|
|
|
|
|
|
jrun:
|
2007-02-01 08:30:33 +00:00
|
|
|
java -classpath ../../.. ase.test.awk.Awk
|
2007-01-30 11:24:40 +00:00
|
|
|
|
|
|
|
clean:
|
2007-02-08 03:54:18 +00:00
|
|
|
rm -rf *.o *.class aseawk
|
2007-01-30 11:24:40 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) $<
|