mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
26 lines
423 B
Makefile
26 lines
423 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 \
|
|
js2.o \
|
|
numerics.o \
|
|
parser.o \
|
|
utilities.o \
|
|
world.o
|
|
|
|
libs = -lstdc++ -lm
|
|
|
|
|
|
%.o : %.cpp
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
js2: $(objs)
|
|
$(CC) -o $@ -ggdb $^ $(libs)
|
|
|
|
gctest: gc_allocator.o
|
|
$(CC) -o $@ -ggdb $^ gc.a $(libs)
|
|
|
|
clean:
|
|
rm -f $(objs)
|