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:
parent
f32676300d
commit
73b2f1d9c2
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user