### Do not edit -- Generated by 'configure --with-whatever' from Makefile.in
### libstk Makefile - for various flavors of unix

STATICLIB = libstk.a
SHAREDLIB = @sharedlib@
MAJOR = 4
RELEASE = 4.4.4

AR = ar -rsc
RM = /bin/rm
LN = /bin/ln
OBJECT_PATH = @object_path@
vpath %.o $(OBJECT_PATH)

OBJECTS	=	Stk.o Generator.o Noise.o Blit.o BlitSaw.o BlitSquare.o Granulate.o \
					Envelope.o ADSR.o Asymp.o Modulate.o SineWave.o FileLoop.o SingWave.o \
					FileRead.o FileWrite.o WvIn.o FileWvIn.o WvOut.o FileWvOut.o \
					Filter.o Fir.o Iir.o OneZero.o OnePole.o PoleZero.o TwoZero.o TwoPole.o \
					BiQuad.o FormSwep.o Delay.o DelayL.o DelayA.o \
					\
					Effect.o PRCRev.o JCRev.o NRev.o FreeVerb.o \
					Chorus.o Echo.o PitShift.o LentPitShift.o \
					Function.o ReedTable.o JetTable.o BowTable.o Cubic.o \
					Voicer.o Vector3D.o Sphere.o Twang.o Guitar.o \
					\
					Instrmnt.o Clarinet.o BlowHole.o Saxofony.o Flute.o Brass.o BlowBotl.o \
					Bowed.o Plucked.o StifKarp.o Sitar.o Mandolin.o Mesh2D.o \
					FM.o Rhodey.o Wurley.o TubeBell.o HevyMetl.o PercFlut.o BeeThree.o FMVoices.o \
					Sampler.o Moog.o Simple.o Drummer.o Shakers.o \
					Modal.o ModalBar.o BandedWG.o Resonate.o VoicForm.o Phonemes.o Whistle.o \
					\
					Messager.o Skini.o MidiFileIn.o

INCLUDE = @include@
ifeq ($(strip $(INCLUDE)),)
	vpath %.h ../include
	INCLUDE = -I../include
else
	vpath %.h ../include $(INCLUDE)
	INCLUDE = -I../include -I@include@
endif

CC       = @CXX@
DEFS     = @CPPFLAGS@
DEFS    += @byte_order@
CFLAGS   = @CXXFLAGS@
CFLAGS  += $(INCLUDE) -Iinclude -fPIC
LIBS     = @LIBS@

REALTIME = @realtime@
ifeq ($(REALTIME),yes)
	OBJECTS += RtMidi.o RtAudio.o RtWvOut.o RtWvIn.o InetWvOut.o InetWvIn.o Thread.o Mutex.o Socket.o TcpClient.o TcpServer.o UdpSocket.o @objects@
endif

RAWWAVES = @rawwaves@
ifeq ($(strip $(RAWWAVES)), )
	RAWWAVES = ../../rawwaves/
endif
DEFS    += -DRAWWAVE_PATH=\"$(RAWWAVES)\"

%.o : %.cpp
	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@

%.o : ../src/include/%.cpp
	$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@

all : $(STATICLIB)

$(STATICLIB) : $(OBJECTS)
	$(RM) -f $(STATICLIB)
	$(AR) $(STATICLIB) $(OBJECT_PATH)/*.o

$(SHAREDLIB) : $(OBJECTS)
	$(RM) -f $(@) $(SHAREDLIB).$(MAJOR) $(SHAREDLIB)
	$(CC) $(LDFLAGS) -fPIC @libflags@ $(OBJECT_PATH)/*.o $(LIBS)
	$(LN) -s @sharedname@ $(SHAREDLIB)
#	$(LN) -s @sharedname@ $(SHAREDLIB).$(MAJOR)

$(OBJECTS) : Stk.h

clean : 
	$(RM) -f $(OBJECT_PATH)/*.o
	$(RM) -f $(STATICLIB)
	$(RM) -f $(SHAREDLIB)* @sharedname@
	$(RM) -f *~
	$(RM) -fR *.dSYM

distclean: clean
	$(RM) Makefile