## improv library GNU makefile for linux. ## ## Programmer: Craig Stuart Sapp ## Creation Date: Fri Jan 15 04:47:24 PST 1999 ## Last Modified: Fri Dec 2 13:56:50 PST 1999 ## Filename: ...improv/Makefile.library ## ## Description: This Makefile creates the improv library lib/libsig.a ## for linux, using gcc 2.7.2.1 or higher ## ## To run this makefile, type (without quotes) "make -f Makefile.library" ## ########################################################################### # # # # # Operating System OSTYPEs available in the improv library compilation: # # # LINUX = Linux running on intel computers # VISUAL = Windows 95/NT using Microsoft Visual C++ 5.0 # # The file "sigConfiguration.h" in the include directory contains additional # defines which will be activated by the OS given by the OSTYPE variable # below. Look at the sigConfiguration.h file for various things which need # to be defined specifically for each OS. # OSTYPE = LINUX OBJDIR = obj SRCDIR = src INCDIR = include LIBDIR = lib LIBFILE = libimprov.a COMPILER = g++ DEFINES = $(addprefix -D,$(OSTYPE)) FLAGS = -Wall -pipe -c -g -O3 $(DEFINES) -I$(INCDIR) # # # End of user-modifiable variables. # # # ########################################################################### # setting up the directory paths to search for dependency files vpath %.h $(INCDIR):$(SRCDIR) vpath %.cpp $(SRCDIR):$(INCDIR) vpath %.o $(OBJDIR) # generating a list of the object files OBJS = $(notdir $(patsubst %.cpp,%.o,$(wildcard $(SRCDIR)/*.cpp))) # targets which don't actually refer to files .PHONY : all linux clean dynamic dllobjs ########################################################################### # # # Hardware Configurations: # # # all: makeobjdir $(OBJS) ifeq ($(OSTYPE),LINUX) @echo Making improv library file for linux ... -mkdir $(LIBDIR) -rm -f $(LIBDIR)/$(LIBFILE) ar r $(LIBDIR)/$(LIBFILE) $(OBJDIR)/*.o $(INCDIR)/version ranlib $(LIBDIR)/$(LIBFILE) endif ifeq ($(OSTYPE),VISUAL) echo this makefile doesn't work with Visual C++. endif clean: @echo Erasing object files: -rm -f $(OBJDIR)/*.o @echo Erasing obj directory: -rmdir $(OBJDIR) makeobjdir: -mkdir $(OBJDIR) # defining an explicit rule for object file dependencies %.o : %.cpp $(COMPILER) $(FLAGS) -o $(OBJDIR)/$(notdir $@) $< # # ########################################################################### ########################################################################### # # # Dependencies -- generated with the following command in # # the src directory (in csh shell): # # # # foreach i (*.cpp) # # cc -I../include -MM $i | sed 's/\.\.\/include\///g' # # echo "" # # end # # # EventBuffer.o: EventBuffer.cpp EventBuffer.h Event.h sigTypes.h \ OneStageEvent.h MidiEvent.h TwoStageEvent.h NoteEvent.h MultiStageEvent.h \ FunctionEvent.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp Event.o: Event.cpp Event.h sigTypes.h OneStageEvent.h MidiEvent.h \ TwoStageEvent.h NoteEvent.h MultiStageEvent.h FunctionEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp FileIO.o: FileIO.cpp FileIO.h sigConfiguration.h FunctionEvent.o: FunctionEvent.cpp FunctionEvent.h TwoStageEvent.h \ Event.h sigTypes.h OneStageEvent.h MidiEvent.h MultiStageEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp NoteEvent.h Idler.o: Idler.cpp Idler.h SigTimer.h improv.o: improv.cpp improv.h mididefines.h midichannels.h notenames.h \ gminstruments.h sigControl.h SigTimer.h Idler.h MidiMessage.h \ sigTypes.h MidiOutPort_visual.h MidiOutPort_unsupported.h MidiOutPort.h \ MidiOutput.h FileIO.h Array.h Collection.h Collection.cpp Array.cpp \ MidiInPort_visual.h MidiInPort_unsupported.h CircularBuffer.h \ CircularBuffer.cpp MidiInPort.h MidiInput.h MidiPort.h MidiIO.h \ RadioBaton.h batonprotocol.h Synthesizer.h Voice.h KeyboardInput.h \ KeyboardInput_unix.h Options.h KeyboardInput_unix.o: KeyboardInput_unix.cpp KeyboardInput_unix.h KeyboardInput_visual.o: KeyboardInput_visual.cpp LineDisplay.o: LineDisplay.cpp LineDisplay.h MidiEvent.o: MidiEvent.cpp MidiEvent.h OneStageEvent.h Event.h sigTypes.h \ TwoStageEvent.h NoteEvent.h MultiStageEvent.h FunctionEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp MidiFile.o: MidiFile.cpp MidiFile.h FileIO.h Array.h Collection.h \ Collection.cpp Array.cpp MidiFileWrite.o: MidiFileWrite.cpp MidiFileWrite.h FileIO.h SigTimer.h MidiInPort_linux.o: MidiInPort_linux.cpp MidiInPort_unsupported.o: MidiInPort_unsupported.cpp \ MidiInPort_unsupported.h MidiMessage.h sigTypes.h CircularBuffer.h \ CircularBuffer.cpp Array.h Collection.h Collection.cpp Array.cpp MidiInPort_visual.o: MidiInPort_visual.cpp MidiInput.o: MidiInput.cpp MidiInput.h MidiInPort.h MidiMessage.h \ sigTypes.h MidiInPort_unsupported.h CircularBuffer.h CircularBuffer.cpp \ Array.h Collection.h Collection.cpp Array.cpp MidiIO.o: MidiIO.cpp MidiIO.h MidiInput.h MidiInPort.h MidiMessage.h \ sigTypes.h MidiInPort_unsupported.h CircularBuffer.h CircularBuffer.cpp \ Array.h Collection.h Collection.cpp Array.cpp MidiOutput.h MidiOutPort.h \ MidiOutPort_unsupported.h FileIO.h SigTimer.h MidiMessage.o: MidiMessage.cpp MidiMessage.h sigTypes.h MidiOutPort_linux.o: MidiOutPort_linux.cpp MidiOutPort_unsupported.o: MidiOutPort_unsupported.cpp \ MidiOutPort_unsupported.h sigTypes.h MidiOutPort_visual.o: MidiOutPort_visual.cpp MidiOutput.o: MidiOutput.cpp MidiOutput.h MidiOutPort.h \ MidiOutPort_unsupported.h sigTypes.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp MidiPerform.o: MidiPerform.cpp MidiPerform.h MidiFile.h FileIO.h Array.h \ Collection.h Collection.cpp Array.cpp CircularBuffer.h CircularBuffer.cpp \ SigTimer.h MidiOutput.h MidiOutPort.h MidiOutPort_unsupported.h \ sigTypes.h MidiPort.o: MidiPort.cpp MidiPort.h MidiInPort.h MidiMessage.h sigTypes.h \ MidiInPort_unsupported.h CircularBuffer.h CircularBuffer.cpp \ Array.h Collection.h Collection.cpp Array.cpp MidiOutPort.h \ MidiOutPort_unsupported.h MultiStageEvent.o: MultiStageEvent.cpp MultiStageEvent.h Event.h \ sigTypes.h OneStageEvent.h MidiEvent.h TwoStageEvent.h NoteEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp FunctionEvent.h Nidaq.o: Nidaq.cpp NoteEvent.o: NoteEvent.cpp NoteEvent.h TwoStageEvent.h Event.h sigTypes.h \ OneStageEvent.h MidiEvent.h MultiStageEvent.h FunctionEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp OneStageEvent.o: OneStageEvent.cpp OneStageEvent.h Event.h sigTypes.h \ TwoStageEvent.h NoteEvent.h MultiStageEvent.h FunctionEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp MidiEvent.h Options.o: Options.cpp Options.h Array.h Collection.h Collection.cpp \ Array.cpp Options_private.h Options_private.o: Options_private.cpp Options_private.h RadioBaton.o: RadioBaton.cpp RadioBaton.h batonprotocol.h CircularBuffer.h \ CircularBuffer.cpp MidiMessage.h sigTypes.h MidiIO.h MidiInput.h \ MidiInPort.h MidiInPort_unsupported.h Array.h Collection.h Collection.cpp \ Array.cpp MidiOutput.h MidiOutPort.h MidiOutPort_unsupported.h FileIO.h \ SigTimer.h Sequencer_linux.o: Sequencer_linux.cpp SigTimer.o: SigTimer.cpp SigTimer.h Synthesizer.o: Synthesizer.cpp Synthesizer.h MidiIO.h MidiInput.h \ MidiInPort.h MidiMessage.h sigTypes.h MidiInPort_unsupported.h \ CircularBuffer.h CircularBuffer.cpp Array.h Collection.h Collection.cpp \ Array.cpp MidiOutput.h MidiOutPort.h MidiOutPort_unsupported.h FileIO.h \ SigTimer.h TwoStageEvent.o: TwoStageEvent.cpp TwoStageEvent.h Event.h sigTypes.h \ OneStageEvent.h MidiEvent.h MultiStageEvent.h FunctionEvent.h \ EventBuffer.h CircularBuffer.h CircularBuffer.cpp MidiOutput.h \ MidiOutPort.h MidiOutPort_unsupported.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp NoteEvent.h Voice.o: Voice.cpp Voice.h MidiOutput.h MidiOutPort.h \ MidiOutPort_unsupported.h sigTypes.h FileIO.h SigTimer.h Array.h \ Collection.h Collection.cpp Array.cpp