CP=cp
RM=rm
SRC=MidiEvent.cs VsqBPList.cs VsqEvent.cs VsqFile.cs VsqNote.cs VsqTrack.cs VsqCurveType.cs VsqBarLineType.cs \
    VsqPhoneticSymbol.cs VsqCommand.cs BPPair.cs VsqCommandType.cs TimeSigTableEntry.cs TempoTableEntry.cs \
    NrpnData.cs VsqNrpn.cs VibratoType.cs VsqEventList.cs VsqCurveTypeUtil.cs SingerConfig.cs VsqUtil.cs
SRC_META_TEXT=VsqMetaText/Common.cs VsqMetaText/Handle.cs VsqMetaText/ID.cs VsqMetaText/Lyric.cs \
              VsqMetaText/Master.cs VsqMetaText/Mixer.cs VsqMetaText/VsqMetaText.cs
SRC_SMF=SMF/MidiFile.cs SMF/SMFReader.cs

Boare.Lib.Vsq.dll: *.cs $(SRC_META_TEXT) $(SRC_SMF) bocoree.dll
	gmcs -recurse:*.cs -target:library -out:Boare.Lib.Vsq.dll -r:bocoree.dll,System,System.Windows.Forms,System.Drawing

bocoree.dll: ../bocoree/bocoree.dll
	cp ../bocoree/bocoree.dll bocoree.dll

../bocoree/bocoree.dll:
	cd ../bocoree/ && $(MAKE)

clean:
	$(RM) Boare.Lib.Vsq.dll
	$(RM) bocoree.dll
	cd ../bocoree/ && $(MAKE) RM=$(RM) clean
