зеркало из https://github.com/mozilla/gecko-dev.git
72 строки
1.2 KiB
Makefile
72 строки
1.2 KiB
Makefile
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
|
|
|
|
objs = hash.o \
|
|
icodegenerator.o \
|
|
icodeemitter.o \
|
|
interpreter.o \
|
|
js2.o \
|
|
jsmath.o \
|
|
jstypes.o \
|
|
numerics.o \
|
|
parser.o \
|
|
utilities.o \
|
|
world.o \
|
|
vmtypes.o \
|
|
debugger.o \
|
|
xmlparser.o \
|
|
icodeasm.o \
|
|
exception.o \
|
|
exception_msgs.o \
|
|
lexutils.o
|
|
|
|
test_objs = hash.o \
|
|
icodeasm.o \
|
|
ica_test.o \
|
|
icodegenerator.o \
|
|
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
|
|
|
|
%.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
|
|
|
|
gctest: gc_allocator.o
|
|
$(CC) -o $@ -ggdb $^ $(libs)
|
|
|
|
ica_test: $(test_objs)
|
|
$(CC) $(CFLAGS) -o $@ $(test_objs) $(libs)
|
|
|
|
clean:
|
|
rm -f $(objs)
|
|
|
|
depend:
|
|
gcc -MM *.cpp > dependencies
|
|
|
|
include dependencies
|