midiplay.exe : midiplay.o note.o midifile.o
	pccl -Lc:\bin\pcc\ midiplay.o note.o midifile.o

midiplay.o : midiplay.c
	pcc midiplay.c

play.exe : play.o note.o
	pccl -Lc:\bin\pcc\ play.o note.o

note.o : note.a
	pcca note.a

play.o : play.c
	pcc play.c

#
# compilation #ifdefs - you need to compile with these defined to get
#                       the code to compile with PCC.
#
# NOFTELL in midifile.c and tomidi.c selects a version of the file-writing
#         code which doesn't use file seeking.
#
# PCCFIX in mftext.c midifile.c midi2abc.c
#        comments out various things that aren't available in PCC
#

midifile.o : midifile.c midifile.h
	pcc midifile.c -nPCCFIX

crack.o : crack.c
	pcc crack.c 

