gecko-dev/js/js2/Makefile

45 строки
785 B
Makefile
Исходник Обычный вид История

2000-02-19 13:03:07 +03:00
CC = gcc
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 \
world.o \
vmtypes.o \
debugger.o
2000-02-19 13:03:07 +03:00
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-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)
depend:
gcc -MM *.cpp > dependencies
include dependencies