Added gctest target, added -lm to get floor()

git-svn-id: svn://10.0.0.236/trunk@62441 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 2000-03-09 02:11:52 +00:00
parent f32676300d
commit 73b2f1d9c2
2 changed files with 12 additions and 6 deletions

View File

@ -1,6 +1,6 @@
CC = gcc
CFLAGS = -O -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes \
-Wno-non-virtual-dtor
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 \
@ -9,7 +9,7 @@ objs = hash.o \
utilities.o \
world.o
libs = -lstdc++
libs = -lstdc++ -lm
%.o : %.cpp
@ -18,5 +18,8 @@ libs = -lstdc++
js2: $(objs)
$(CC) -o $@ -ggdb $^ $(libs)
gctest: gc_allocator.o
$(CC) -o $@ -ggdb $^ gc.a $(libs)
clean:
rm -f $(objs)

View File

@ -1,6 +1,6 @@
CC = gcc
CFLAGS = -O -ggdb -DDEBUG -DXP_UNIX -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes \
-Wno-non-virtual-dtor
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 \
@ -9,7 +9,7 @@ objs = hash.o \
utilities.o \
world.o
libs = -lstdc++
libs = -lstdc++ -lm
%.o : %.cpp
@ -18,5 +18,8 @@ libs = -lstdc++
js2: $(objs)
$(CC) -o $@ -ggdb $^ $(libs)
gctest: gc_allocator.o
$(CC) -o $@ -ggdb $^ gc.a $(libs)
clean:
rm -f $(objs)