aboutsummaryrefslogtreecommitdiff
path: root/makefile.stk
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2002-06-17 10:13:57 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2002-06-17 10:13:57 +0000
commitfc3d3c0a4f110a23335398c327ac0a4fc949d5cb (patch)
tree1849d6afbe34cee9cec97bdb2295401f5126870b /makefile.stk
This commit was generated by cvs2svn to compensate for changes in r12,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/ggee/; revision=13
Diffstat (limited to 'makefile.stk')
-rw-r--r--makefile.stk42
1 files changed, 42 insertions, 0 deletions
diff --git a/makefile.stk b/makefile.stk
new file mode 100644
index 0000000..7c57a09
--- /dev/null
+++ b/makefile.stk
@@ -0,0 +1,42 @@
+# The following definition indicates the relative location of
+# the core STK classes.
+
+
+STK_PATH = $(BUILD_STK)/src/
+INSTALL_DIR = $(INSTALL_PREFIX)/lib/pd/
+
+INCLUDE = -I$(BUILD_STK)/include -Iexperimental -I$(BUILD_STK)/projects/ragamatic
+
+CXXDEFINES = -O3 -I. -D__OS_Linux_ -DSRATE=44100.0 -DRAWWAVE_PATH=\"$(INSTALL_DIR)\" $(INCLUDE)
+
+CC_FILES = $(shell ls --ignore "*.tbl" --ignore "*.a" --ignore "*.o" $(BUILD_STK)/src/)
+
+CC_FILES += Sitar1.cpp StrDrone.cpp
+
+O_FILES = $(CC_FILES:.cpp=.o)
+
+
+
+%.o : $(STK_PATH)%.cpp
+ $(CXX) $(CXXDEFINES) -c $(<) -o $@
+
+
+%.o : $(STK_PATH)/../projects/ragamatic/%.cpp
+ $(CXX) $(CXXDEFINES) -c $(<) -o $@
+
+
+libstk: $(O_FILES)
+ ar rc libstk.a $(O_FILES)
+
+.cpp.pd_linux:
+ $(CXX) -o $@ $(CFLAGS) $(LFLAGS) -O2 -DPD -fPIC $(INCLUDE) $*.cpp -L. -I$(STK_PATH) -lstk
+
+
+
+clean::
+ -rm libstk.a
+
+install-stk::
+ install -d $(DESTDIR)/$(INSTALL_DIR)/rawwaves
+ install $(BUILD_STK)/rawwaves/* $(DESTDIR)/$(INSTALL_DIR)/rawwaves
+