Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (11 sloc) 1.536 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
objects = background.o character.o character_type.o color_utils.o custom_object.o custom_object_functions.o custom_object_type.o draw_tile.o editor.o entity.o filesystem.o font.o formula.o formula_function.o formula_tokenizer.o frame.o geometry.o item.o item_type.o joystick.o key.o level.o level_logic.o level_object.o main.o raster.o sound.o string_utils.o surface_cache.o surface.o texture.o tile_map.o variant.o wml_node.o wml_parser.o wml_utils.o wml_writer.o

formula_test_objects = filesystem.o formula_function.o formula_tokenizer.o string_utils.o variant.o wml_node.o wml_parser.o wml_utils.o wml_writer.o

%.o : %.cpp
/cygdrive/c/mingw/bin/g++ -O2 -I../SDL_mixer-1.2.8/include -I../silvertree-sdk/SDK/include/SDL -I../silvertree-sdk/SDK/include -I../silvertree-sdk/SDK -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -c $<

game: $(objects)
. build-win.sh


# /cygdrive/c/mingw/bin/g++ -g -O2 -s -mwindows -L../SDL_mixer-1.2.8/lib -L../silvertree-sdk/SDK/lib -I../SDL_mixer-1.2.8/include -I../silvertree-sdk/SDK/include/SDL -I../silvertree-sdk/SDK/include -I../silvertree-sdk/SDK -lmingw32 -lopengl32 -lglu32 -lboost_regex-mgw34-mt-1_34_1 -lSDLmain -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer $(objects) -o neorice.exe

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 formula.cpp $(formula_test_objects) -o test

clean:
rm *.o game
Something went wrong with that request. Please try again.