CPP = g++ MSWCPP = i386-mingw32msvc-g++ VERSION = 4 FLAGS = -Wall -pipe -O3 -funroll-loops -Wall -DDEBUG -DVERSION="\"$(VERSION)\"" -DCVERSION="\"`date +%Y%m%d`\"" DEFAULT: gtk ####################################################### gtk ########################################### gtk: Sand-$(VERSION).cpp Sand-$(VERSION).h pause.xpm refresh.xpm $(CPP) $(FLAGS) -ansi -ggdb Sand-$(VERSION).cpp `wx-config --libs --cxxflags` -o sand-$(VERSION) ####################################################### msw ########################################### msw: Sand-$(VERSION).cpp Sand-$(VERSION).h pause.xpm refresh.xpm $(MSWCPP) $(FLAGS) Sand-$(VERSION).cpp `~/opt/cross-compile/bin/wx-config --cxxflags --libs` wxres.o -o sand-$(VERSION).exe ####################################################### ########################################### dist: gtk msw i386-mingw32msvc-strip sand-$(VERSION).exe strip sand-$(VERSION) cp -f sand-$(VERSION).exe sand-$(VERSION)-`date +%Y%m%d`.exe cp -f sand-$(VERSION) sand-$(VERSION)-`date +%Y%m%d` scp sand-$(VERSION)-* piettes.com:piettes.com/fallingsandgame/bin