CFLAGS=-ffast-math -funroll-loops -Wall -lalleg
SRC=strangegame.c display.c

all : dos

dos : sg.exe
ming : sgwin.exe
dosdebug : sgd.exe

sg.exe : $(SRC)
	gcc $(SRC) libdgui.a -o sg.exe $(CFLAGS) -s -O2

sgwin.exe : $(SRC)
	gcc $(SRC) libwgui.a -o sgwin.exe $(CFLAGS) -s -O2 -mwindows

sgd.exe : $(SRC)
	gcc $(SRC) libxdbug.a libdgui.a -o sgd.exe $(CFLAGS) -DDEBUG

mingdebug : 
	@echo sorry the debug lib hasn\'t been tested with mingw32 yet.
	@echo I will get around to it when i can.

clean : 
	-rm -f *.exe