error:
	@echo 'make linux' or 'make windows'

linux: ../gnomeguard

windows: ../gnomeguard.exe
windows: CC = gcc

cross: ../gnomeguard.exe
cross: CC = i586-mingw32msvc-gcc

../gnomeguard: main.c game.c init.c exit.c menu.c level.c map.c
	gcc -o$@ $^ -O6 -s -Wall `allegro-config --libs`
		
../gnomeguard.exe: main.c game.c init.c exit.c menu.c level.c map.c
	$(CC) -o$@ icon.o $^ -O3 -s -Wall -mwindows -lalleg_s -DALLEGRO_STATICLINK -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
