2000-02-19 13:03:07 +03:00
|
|
|
CC = gcc
|
2000-11-17 02:58:53 +03:00
|
|
|
DEFINES += -DDEBUG
|
|
|
|
CFLAGS = -g -ggdb $(DEFINES) -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 \
|
2001-02-02 04:08:06 +03:00
|
|
|
icodeEmitter.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 \
|
2000-10-19 03:46:39 +04:00
|
|
|
debugger.o \
|
2000-10-21 04:57:54 +04:00
|
|
|
xmlparser.o \
|
2000-11-17 02:58:53 +03:00
|
|
|
icodeasm.o \
|
|
|
|
exception.o \
|
|
|
|
exception_msgs.o \
|
|
|
|
lexutils.o
|
2000-02-19 13:03:07 +03:00
|
|
|
|
2000-10-17 04:41:54 +04:00
|
|
|
test_objs = hash.o \
|
|
|
|
icodeasm.o \
|
|
|
|
ica_test.o \
|
2000-10-14 04:06:42 +04:00
|
|
|
icodegenerator.o \
|
2001-02-02 04:08:06 +03:00
|
|
|
icodeEmitter.o \
|
2000-10-14 04:06:42 +04:00
|
|
|
interpreter.o \
|
|
|
|
jsmath.o \
|
|
|
|
jstypes.o \
|
|
|
|
numerics.o \
|
|
|
|
parser.o \
|
|
|
|
utilities.o \
|
|
|
|
world.o \
|
|
|
|
vmtypes.o \
|
2000-10-21 04:57:54 +04:00
|
|
|
xmlparser.o \
|
2000-11-14 06:11:54 +03:00
|
|
|
debugger.o \
|
|
|
|
exception.o \
|
|
|
|
exception_msgs.o \
|
|
|
|
lexutils.o
|
2000-10-14 04:06:42 +04: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-17 04:41:54 +04:00
|
|
|
ica_test: $(test_objs)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(test_objs) $(libs)
|
2000-10-13 03:58:51 +04:00
|
|
|
|
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
|