### 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 = @PACKAGE_VERSION@

AR = ar -rsc
RM = /bin/rm
LN = /bin/ln
OBJECT_PATH = @object_path@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
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 TapDelay.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 Recorder.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
LDFLAGS  = @LDFLAGS@
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

BUILD_STATIC = @build_static@
BUILD_SHARED = @build_shared@
DEFAULT_TARGETS = 
ifeq ($(BUILD_STATIC),yes)
 DEFAULT_TARGETS += $(STATICLIB)
endif
ifeq ($(BUILD_SHARED),yes)
 DEFAULT_TARGETS += $(SHAREDLIB)
endif

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

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

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

all : $(DEFAULT_TARGETS)

$(OBJECT_PATH)/.placeholder:
	mkdir -vp $(OBJECT_PATH)
	touch $(OBJECT_PATH)/.placeholder

$(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)

install-headers:
	install -d $(DESTDIR)$(includedir)/stk
	cp -R ../include/*.h $(DESTDIR)$(includedir)/stk

install: $(SHAREDLIB) install-headers
	install -d $(DESTDIR)$(libdir)
	install -m 644 @sharedname@ $(DESTDIR)$(libdir)
	ln -sf @sharedname@ $(DESTDIR)$(libdir)/$(SHAREDLIB)


$(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
