$OpenBSD: patch-Makefile,v 1.1.1.1 2010/09/23 11:30:56 ajacoutot Exp $ --- Makefile.orig Sat Aug 14 06:27:06 2010 +++ Makefile Thu Sep 23 10:00:11 2010 @@ -7,31 +7,31 @@ formula_test_objects = filesystem.o formula_function.o wml_modify_test_objects = filesystem.o string_utils.o wml_node.o wml_parser.o wml_utils.o wml_schema_test_objects = filesystem.o string_utils.o wml_node.o wml_parser.o wml_utils.o -OPT=-O2 -fno-inline-functions +OPT=-fno-inline-functions %.o : src/%.cpp - ccache g++ -DIMPLEMENT_SAVE_PNG -fno-inline-functions -g $(OPT) `sdl-config --cflags` -I/usr/X11R6/include -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -fthreadsafe-statics -c $< + ${CXX} ${CXXFLAGS} -DIMPLEMENT_SAVE_PNG -fno-inline-functions $(OPT) `sdl-config --cflags` -I${X11BASE}/include -I${LOCALBASE}/include/libpng -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -fthreadsafe-statics -c $< game: $(objects) - g++ -g $(OPT) -L. -L/sw/lib -L/usr/X11R6/lib -L. -lX11 -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lGLEW -lSDL_image -lSDL_ttf -lSDL_mixer -lpng -lboost_regex-mt -lboost_system-mt -fthreadsafe-statics $(objects) -o game + ${CXX} ${CXXFLAGS} $(OPT) -L. -L/sw/lib -L${X11BASE}/lib -L. -lX11 -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lGLEW -lSDL_image -lSDL_ttf -lSDL_mixer -lpng -lboost_regex-mt -lboost_system-mt -fthreadsafe-statics $(objects) -o game server: $(server_objects) - g++ -fno-inline-functions -g $(OPT) -L/sw/lib -L/usr/X11R6/lib -lX11 -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_iostreams-mt -fthreadsafe-statics $(server_objects) -o server + ${CXX} ${CXXFLAGS} -fno-inline-functions $(OPT) -L/sw/lib -L${X11BASE}/lib -lX11 -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_iostreams-mt -fthreadsafe-statics $(server_objects) -o server poolalloc.o: src/poolalloc.c - gcc -fno-inline-functions -g $(OPT) `sdl-config --cflags` -I/usr/X11R6/include -D_GNU_SOURCE=1 -D_REENTRANT -Wreturn-type -c src/poolalloc.c + ${CC} ${CFLAGS} -fno-inline-functions $(OPT) `sdl-config --cflags` -I${X11BASE}/include -I${LOCALBASE}/include/libpng -D_GNU_SOURCE=1 -D_REENTRANT -Wreturn-type -c src/poolalloc.c malloc.o: src/malloc.c - gcc -fno-inline-functions -g $(OPT) `sdl-config --cflags` -I/usr/X11R6/include -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_LOCKS=1 -Wreturn-type -c src/malloc.c + ${CC} ${CFLAGS} -fno-inline-functions $(OPT) `sdl-config --cflags` -I${X11BASE}/include -I${LOCALBASE}/include/libpng -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_LOCKS=1 -Wreturn-type -c src/malloc.c formula_test: $(formula_test_objects) - g++ -O2 -g -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_FORMULA -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex src/formula.cpp $(formula_test_objects) -o test + ${CXX} ${CXXFLAGS} -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_FORMULA -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex src/formula.cpp $(formula_test_objects) -o test wml_modify_test: $(wml_modify_test_objects) - g++ -O2 -g -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -I/usr/X11R6/include -Isrc/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_WML_MODIFY -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lboost_regex src/wml_modify.cpp $(wml_modify_test_objects) -o test + ${CXX} ${CXXFLAGS} -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -I${X11BASE}/include -I${LOCALBASE}/include/libpng -Isrc/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_WML_MODIFY -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lboost_regex src/wml_modify.cpp $(wml_modify_test_objects) -o test wml_schema_test: $(wml_schema_test_objects) - g++ -O2 -g -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -I/usr/X11R6/include -Isrc/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_WML_SCHEMA -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lboost_regex src/wml_schema.cpp $(wml_schema_test_objects) -o test + ${CXX} ${CXXFLAGS} -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -I${X11BASE}/include -I${LOCALBASE}/include/libpng -Isrc/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUNIT_TEST_WML_SCHEMA -Wnon-virtual-dtor -Wreturn-type -L/usr/lib -lboost_regex src/wml_schema.cpp $(wml_schema_test_objects) -o test clean: