From fc3d3c0a4f110a23335398c327ac0a4fc949d5cb Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Mon, 17 Jun 2002 10:13:57 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r12, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/ggee/; revision=13 --- makefile.stk | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 makefile.stk (limited to 'makefile.stk') 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 + -- cgit v1.2.1