# A simple makefile that assumes the source directory contains all
# the LMUSe source files and that the makefile is being run from
# in that directory.
# Also, allegro and djgpp are installed in the out-of-the-box way.

OPTIONS = -O2 -W -Wall
OBJS = lmuse.o prod.o interpret.o draw.o play.o help.o scales.o procbut.o midifile.o

lmus.exe : $(OBJS)
	gcc -s -oLmus.exe $(OBJS)  -lalleg -lm

lmuse.o : lmuse.c midifile.h lmuse.h ldat.h
prod.o : prod.c lmuse.h
interpret.o : interpret.c midifile.h lmuse.h
draw.o : draw.c lmuse.h
play.o : play.c midifile.h lmuse.h
help.o : help.c lmuse.h help.h
scales.o : scales.c lmuse.h
procbut.o : procbut.c
midifile.o : midifile.c midifile.h

%o : %c
	gcc -c $(OPTIONS) $<
