Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (35 sloc) 2.54 KB
CC = gcc
CXX = g++
NEON = -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=hard -ffast-math -fsingle-precision-constant -fno-inline-functions -fno-omit-frame-pointer -fno-optimize-sibling-calls
OPT = -O2 $(NEON) -DTARGET_OS_HARMATTAN -DSDL_VIDEO_OPENGL_ES -DGLdouble=GLfloat -DNO_EDITOR=1
include Makefile.common
LDADD=-lGLES_CM -lSDLmain -lSDL -lSDL_image -lSDL_mixer
%.o : src/%.cpp
$(CXX) -DIMPLEMENT_SAVE_PNG -fno-inline-functions -g $(OPT) `sdl-config --cflags` `pkg-config gconf-2.0 --cflags` -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -fthreadsafe-statics -c $<
game: $(objects)
$(CXX) -g $(OPT) `pkg-config gconf-2.0 --libs` -L. -L/sw/lib -L. -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` ${LDADD} -lpng -lboost_regex-mt -lboost_system-mt -lpthread -fthreadsafe-statics $(objects) -o game
server: $(server_objects)
$(CXX) -fno-inline-functions -g $(OPT) -L/sw/lib -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` ${LDADD} -lGL -lGLU -lSDL_image -lSDL_mixer -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_iostreams-mt -fthreadsafe-statics $(server_objects) -o server
formula_test: $(formula_test_objects)
$(CXX) -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_mixer -lboost_regex src/formula.cpp $(formula_test_objects) -o test
wml_modify_test: $(wml_modify_test_objects)
$(CXX) -O2 -g -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -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)
$(CXX) -O2 -g -framework Cocoa -I/usr/local/include/boost-1_34 -I/sw/include/SDL -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
update-pot:
utils/make-pot.sh > po/frogatto.pot
%.po: po/frogatto.pot
msgmerge $@ po/frogatto.pot -o $@.part
mv $@.part $@
LINGUAS=ar de el en_GB eo es fr hu_HU id it ja ms_MY nl pl pt_BR ru sk sv tt zh_CN
update-po:
(for lang in ${LINGUAS}; do \
${MAKE} po/$$lang.po ; \
done)
update-mo:
(for lang in ${LINGUAS}; do \
mkdir -p locale/$$lang/LC_MESSAGES ; \
msgfmt po/$$lang.po -o locale/$$lang/LC_MESSAGES/frogatto.mo ; \
done)
clean:
rm -f *.o game
Something went wrong with that request. Please try again.