#============================================================================ # Makefile MUSIC DRIVER #============================================================================ SYNTHPATH = /jaguar/music/fulsyn ;SYNTHPATH = /../fulsyn #============================================================================ # Use 'erase' and 'rename'or 'move' on MS-DOS # Use 'rm' and 'mv' on Atari w/TCSH or Gulam #============================================================================ ERASE = erase RENAME = move #============================================================================ # MIDI FILE WITHOUT EXTENTION (!!) #============================================================================ MIDIFILE = demo #============================================================================ # If you have more than one MIDI file, you have to make changes to this # 'makefile'. This above variable 'MIDIFILE' has to have the name of the # output file of the merged MIDI files (e.g. 'music'). For each of your # MIDI files you have to add these lines to your makefile: # midifile.out: # parse -q -x offset -n nr_of_voices -o midifile.out midifile.mid # # To get the MIDI files merged, add: # $(MIDIFILE).out: # merge $(MIDIFILE).out file1.out file2.out ... # # Example using the MIDI files: # # MIDIFILE = music # # a.out: # parse -q -x 0 -n 2 -o a.out a.mid # b.out: # parse -q -x 2 -n 3 -o b.out b.mid # c.out: # parse -q -x 5 -n 2 -o c.out c.mid # # $(MIDIFILE).out: # merge $(MIDIFILE).out a.out b.out c.out # #============================================================================ #============================================================================ # MIDI Parser flags #============================================================================ PARSERFLAGS = -q #============================================================================ # Assembler & Linker flags #============================================================================ MACFLAGS = -fb -g -i$(SYNTHPATH);$(MACPATH) ALNFLAGS = -v -v -e -l -a 802000 x 4000 #============================================================================ # Default Rules #============================================================================ .SUFFIXES: .o .mid .mid.o: # parse $(PARSERFLAGS) -o $*.out $*.mid ; mac $(MACFLAGS) -o $*.o $*.out # $(ERASE) $*.out #============================================================================ .SUFFIXES: .out .mid .mid.out: # parse $(PARSERFLAGS) -o $*.out $*.mid #============================================================================ .SUFFIXES: .o .out .out.o: ; mac $(MACFLAGS) -o$*.o $*.out #============================================================================ .SUFFIXES: .o .s .s.o: mac $(MACFLAGS) $* #============================================================================ .SUFFIXES: .oj .das .das.oj: mac $(MACFLAGS) -o$*.oj $*.das #============================================================================ FULSYN = $(SYNTHPATH)/fs02_51.oj OBJS = driver.o synth.o $(MIDIFILE).o EXEC = demo.cof #============================================================================ # EXECUTABLES #============================================================================ $(EXEC): $(OBJS) $(FULSYN) aln $(ALNFLAGS) -o $(EXEC) $(OBJS) $(FULSYN) #============================================================================ # Dependencies #============================================================================ driver.o: driver.s synth.cnf ../fulsyn/fulsyn.inc synth.o: synth.s synth.cnf ../fulsyn/fulsyn.inc $(FULSYN): $(SYNTHPATH)/fs02_51.das synth.cnf $(SYNTHPATH)/fulsyn.inc mac $(MACFLAGS) -o$*.oj $*.das