# 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, djgpp is installed in the out-of-the-box way.

OPTIONS = -O2 -W -Wall

OBJS = lmuse.o prod.o midifile.o

lmuse.exe : $(OBJS)
	gcc -s -oLmuse.exe $(OBJS) -lm

lmuse.o : lmuse.c lmuse.h midifile.h
prod.o : prod.c lmuse.h
midifile.o : midifile.c midifile.h

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