makeall: compile extract.exe hogfile.exe
OBJ=devil.o system.o tools.o insert.o initio.o plot.o savetool.o readlvl.o \
 event.o do_bmap.o do_event.o change.o grfx.o macros.o
CFLAGS=-Wall -O2 -m486 -g -DGNU_C -ansi
%.exe: %.out
	rem strip $<
	coff2exe $<
devil.out: $(OBJ)
	gcc @link
compile: $(OBJ)
hogfile.out: hogfile.c
	gcc -Wall -ansi -g hogfile.c -o hogfile.out
extract.out: extract.c
	gcc -Wall -ansi -g extract.c -o extract.out

system.o: system.c system.h structs.h
	gcc -Wall -O2 -m486 -g -DGNU_C -c system.c -o system.o
tools.o: tools.c tools.h grfx.h structs.h system.h
savetool.o: savetool.c savetool.h tools.h structs.h 
insert.o: insert.c insert.h tools.h structs.h 
macros.o: macros.c macros.h event.h insert.h tools.h insert.h structs.h 
readlvl.o: readlvl.c readlvl.h tools.h insert.h structs.h 
initio.o: initio.c initio.h tools.h structs.h system.h
plot.o: plot.c plot.h insert.h tools.h structs.h system.h
grfx.o: grfx.c grfx.h tools.h structs.h system.h
event.o: event.c event.h do_event.h structs.h system.h tools.h 
do_bmap.o: do_bmap.c do_bmap.h do_event.h structs.h system.h
do_event.o: do_event.c do_move.c do_event.h do_bmap.h change.h event.h \
 structs.h tools.h insert.h macros.h credits.h
change.o: change.c do_side.c change.h event.h tools.h system.h structs.h
insert.o: insert.c insert.h stdtypes.h tools.h structs.h
devil.o: devil.c structs.h system.h plot.h initio.h readlvl.h tools.h
