gecko-dev/js/js2/Makefile

42 lines
711 B
Makefile
Raw Normal View History

2000-02-19 10:03:07 +00: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 10:03:07 +00:00
objs = hash.o \
2000-03-31 00:42:25 +00:00
icodegenerator.o \
2000-04-06 03:05:12 +00:00
interpreter.o \
2000-02-19 10:03:07 +00:00
js2.o \
2000-07-21 05:00:43 +00:00
jsmath.o \
2000-04-28 13:25:24 +00:00
jstypes.o \
2000-02-19 10:03:07 +00:00
numerics.o \
parser.o \
utilities.o \
world.o \
vmtypes.o \
debugger.o
2000-02-19 10:03:07 +00:00
gc_path = ../../gc/boehm/
libs = gc.a -lstdc++ -lm
2000-02-19 10:03:07 +00: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 10:03:07 +00:00
gctest: gc_allocator.o
2000-04-13 00:16:58 +00:00
$(CC) -o $@ -ggdb $^ $(libs)
2000-02-19 10:03:07 +00:00
clean:
rm -f $(objs)
depend:
gcc -MM *.cpp > dependencies
include dependencies