gecko-dev/js/js2/Makefile

72 строки
1.2 KiB
Makefile
Исходник Обычный вид История

2000-02-19 13:03:07 +03:00
CC = gcc
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 \
world.o \
vmtypes.o \
2000-10-19 03:46:39 +04:00
debugger.o \
xmlparser.o \
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 \
icodegenerator.o \
2001-02-02 04:08:06 +03:00
icodeEmitter.o \
interpreter.o \
jsmath.o \
jstypes.o \
numerics.o \
parser.o \
utilities.o \
world.o \
vmtypes.o \
xmlparser.o \
debugger.o \
exception.o \
exception_msgs.o \
lexutils.o
gc_path = ../../gc/boehm/
libs = gc.a -lstdc++ -lm
2000-02-19 13:03:07 +03:00
%.o : %.cpp
$(CC) -c $(CFLAGS) $< -o $@
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
gctest: gc_allocator.o
2000-04-13 04:16:58 +04:00
$(CC) -o $@ -ggdb $^ $(libs)
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)
depend:
gcc -MM *.cpp > dependencies
include dependencies