forked from anura-engine/anura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-safe
21 lines (14 loc) · 1.2 KB
/
Makefile-safe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC = ccache gcc
CXX = ccache g++
OPT = -O2 -lX11 -lz -fno-inline-functions
include Makefile.common
src/%.o : src/%.cpp
$(CXX) $(CCFLAGS) -DIMPLEMENT_SAVE_PNG -fno-inline-functions `sdl-config --cflags` -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type -fthreadsafe-statics -g $(OPT) -c $<
src/server/%.o: src/server/%.cpp
$(CXX) $(CCFLAGS) -DIMPLEMENT_SAVE_PNG -fno-inline-functions `sdl-config --cflags` -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type -fthreadsafe-statics -g $(OPT) -c $<
game: $(objects)
$(CXX) $(CCFLAGS) -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type $(objects) -o game -L. -L/sw/lib -L. -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lGLEW -lSDL_image -lSDL_ttf -lSDL_mixer -lpng -lboost_regex -lboost_system -lpthread -g $(OPT) -fthreadsafe-statics
server: $(server_objects)
$(CXX) -fno-inline-functions -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Werror=return-type -fthreadsafe-statics $(server_objects) -o server -L/sw/lib -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex -lboost_system -lboost_thread -lboost_iostreams -g $(OPT)
clean:
rm -f *.o game