aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-16 00:38:55 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-16 00:38:55 +0000
commitc05865f60bf15e962b6b30eceb8fa81358f1eaa2 (patch)
tree079d44507aab89b02f8269485e9b74a5761ab688 /Makefile
parent6fd40fd5265b6941d5114f6b4f82e1c6b6cdbc0d (diff)
test
svn path=/trunk/externals/pdp/; revision=4230
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile70
1 files changed, 70 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..105c2b9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,70 @@
+include Makefile.config
+
+
+all: $(PDP_TARGET)
+
+pdp_all:
+ make -C system
+ make -C puredata
+ make -C modules
+
+darwin: pdp_all
+ rm -f pdp.pd_darwin
+ $(CC) -o pdp.pd_darwin modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) -bundle -undefined error -twolevel_namespace -bundle_loader $(PD_EXECUTABLE)
+
+
+linux: pdp_all
+ rm -f pdp.pd_linux
+ $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS)
+
+linux_mmx: pdp_all
+ rm -f pdp.pd_linux
+ $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS)
+
+buildclean:
+ make -C include clean
+ make -C system clean
+ make -C puredata clean
+ make -C modules clean
+
+clean: buildclean
+ rm -f pdp.pd_linux
+ rm -f *~
+
+distroclean: buildclean
+ make -C scaf clean
+ make -C opengl clean
+
+mrproper: clean distroclean
+ make -C scaf mrproper
+ rm -rf configure
+ rm -rf config.log
+ rm -rf config.status
+ rm -rf autom4te.cache
+ #this needs to stay in to keep the makefiles working
+ #rm -rf Makefile.config
+
+tags:
+ etags --language=auto include/*.h system/*.c system/mmx/*.s system/*/*.c puredata/*.c \
+ modules/*/*.c scaf/*/*.c scaf/*/*.s opengl/*/*.c
+
+tagsclean:
+ rm -f TAGS
+
+
+install: all
+ #check if pd is installed. if this fails make install will stop here.
+ test -d $(prefix)/lib/pd
+ install -d $(prefix)/lib/pd/extra
+ install -m 755 $(PDP_LIBRARY_NAME) $(prefix)/lib/pd/extra
+ install -m 755 -d $(prefix)/include/pdp
+ install -m 644 include/*.h $(prefix)/include/pdp
+ install -m 644 abstractions/*.pd $(prefix)/lib/pd/extra
+ install -m 644 doc/objects/*.pd $(prefix)/lib/pd/doc/5.reference
+ install -m 755 -d $(prefix)/lib/pd/doc/pdp
+ install -m 755 -d $(prefix)/lib/pd/doc/pdp/introduction
+ install -m 755 -d $(prefix)/lib/pd/doc/pdp/examples
+ install -m 644 doc/reference.txt $(prefix)/lib/pd/doc/pdp
+ install -m 644 doc/introduction/*.pd $(prefix)/lib/pd/doc/pdp/introduction
+ install -m 644 doc/examples/*.pd $(prefix)/lib/pd/doc/pdp/examples
+ install -m 755 bin/pdp-config $(prefix)/bin