mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 19:09:47 +00:00
522d51c5b6
build shouldn't *look* different yet. Moved Context::interpret() local vars into Context private, added accessors for stuff, using JavaScript::Lexer to lex debugger commands. Fixed sign comparison warning in icg.cpp
41 lines
699 B
Makefile
41 lines
699 B
Makefile
CC = gcc
|
|
CFLAGS = -g -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith -Wbad-function-cast \
|
|
-Wstrict-prototypes -Wmissing-prototypes -Wno-non-virtual-dtor
|
|
|
|
objs = hash.o \
|
|
icodegenerator.o \
|
|
interpreter.o \
|
|
js2.o \
|
|
jstypes.o \
|
|
numerics.o \
|
|
parser.o \
|
|
utilities.o \
|
|
world.o \
|
|
vmtypes.o \
|
|
debugger.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)
|
|
|
|
clean:
|
|
rm -f $(objs)
|
|
|
|
depend:
|
|
gcc -MM *.cpp > dependencies
|
|
|
|
include dependencies
|