2000-02-19 13:03:07 +03:00
|
|
|
CC = gcc
|
2000-03-09 05:11:52 +03:00
|
|
|
CFLAGS = -g -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith -Wbad-function-cast \
|
|
|
|
-Wstrict-prototypes -Wmissing-prototypes -Wno-non-virtual-dtor
|
2000-02-19 13:03:07 +03:00
|
|
|
|
|
|
|
objs = hash.o \
|
2000-03-31 04:42:25 +04:00
|
|
|
icodegenerator.o \
|
2000-02-19 13:03:07 +03:00
|
|
|
js2.o \
|
|
|
|
numerics.o \
|
|
|
|
parser.o \
|
|
|
|
utilities.o \
|
|
|
|
world.o
|
|
|
|
|
2000-03-09 05:11:52 +03:00
|
|
|
libs = -lstdc++ -lm
|
2000-02-19 13:03:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
%.o : %.cpp
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
js2: $(objs)
|
2000-02-21 22:48:45 +03:00
|
|
|
$(CC) -o $@ -ggdb $^ $(libs)
|
2000-02-19 13:03:07 +03:00
|
|
|
|
2000-03-09 05:11:52 +03:00
|
|
|
gctest: gc_allocator.o
|
|
|
|
$(CC) -o $@ -ggdb $^ gc.a $(libs)
|
|
|
|
|
2000-02-19 13:03:07 +03:00
|
|
|
clean:
|
|
|
|
rm -f $(objs)
|