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-04-06 07:05:12 +04:00
|
|
|
interpreter.o \
|
2000-02-19 13:03:07 +03:00
|
|
|
js2.o \
|
2000-07-21 09:00:43 +04:00
|
|
|
jsmath.o \
|
2000-04-28 17:25:24 +04:00
|
|
|
jstypes.o \
|
2000-02-19 13:03:07 +03:00
|
|
|
numerics.o \
|
|
|
|
parser.o \
|
|
|
|
utilities.o \
|
2000-04-18 04:17:34 +04:00
|
|
|
world.o \
|
2000-04-29 04:23:06 +04:00
|
|
|
vmtypes.o \
|
|
|
|
debugger.o
|
2000-02-19 13:03:07 +03:00
|
|
|
|
2000-04-21 03:02:19 +04:00
|
|
|
gc_path = ../../gc/boehm/
|
|
|
|
|
|
|
|
libs = gc.a -lstdc++ -lm
|
2000-02-19 13:03:07 +03:00
|
|
|
|
|
|
|
%.o : %.cpp
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
2000-04-21 03:02:19 +04:00
|
|
|
js2: $(objs) gc.a
|
|
|
|
$(CC) -o $@ -ggdb $(objs) $(libs)
|
|
|
|
|
|
|
|
gc.a:
|
|
|
|
(cd $(gc_path) ; ln -f -s Makefile.unix Makefile ; make gc.a)
|
|
|
|
ln -f -s $(gc_path)gc.a ./gc.a
|
2000-02-19 13:03:07 +03:00
|
|
|
|
2000-03-09 05:11:52 +03:00
|
|
|
gctest: gc_allocator.o
|
2000-04-13 04:16:58 +04:00
|
|
|
$(CC) -o $@ -ggdb $^ $(libs)
|
2000-03-09 05:11:52 +03:00
|
|
|
|
2000-10-13 03:58:51 +04:00
|
|
|
ica_test:
|
|
|
|
$(CC) $(CFLAGS) -o ica_test ica_test.cpp icodeasm.cpp $(LIBS)
|
|
|
|
|
2000-02-19 13:03:07 +03:00
|
|
|
clean:
|
|
|
|
rm -f $(objs)
|
2000-04-21 03:02:19 +04:00
|
|
|
|
|
|
|
depend:
|
|
|
|
gcc -MM *.cpp > dependencies
|
|
|
|
|
|
|
|
include dependencies
|