OBJ = sound hiscore keyboard readtxt tilewld zeus arenamai insane abkey allegdlg ka wave drm tet guwame i
HEADS = allegdlg.h dosarena.h tilewld.h gamelist.h wave.h
LIBS = -lalleg
CFLAGS = -Wall -m486 -O3 -ffast-math
LDFLAGS = -mwindows
CC = gcc



OBJS = $(addsuffix .o,$(OBJ))

#Some of these rules are redundant on a GNU system, but they are
#necessary on some Allegro platforms to force use of GCC.

dosarena.exe: $(OBJS)
	gcc $(LDFLAGS) -o dosarena.exe $(OBJS) $(LIBS)

%.o: %.c $(HEADS)
	gcc $(CFLAGS) -o $@ -c $<
