aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Schouten <doelie@users.sourceforge.net>2003-02-28 09:48:54 +0000
committerTom Schouten <doelie@users.sourceforge.net>2003-02-28 09:48:54 +0000
commit8227dc75b8e236f7f9629d1bc49fae0addee3def (patch)
tree13f2aec426201ee87dd0cbda0860082315dfa1ae /Makefile
parenta0aef64af84622e8d6d02c7714fb82178dea0286 (diff)
pdp config
svn path=/trunk/externals/pdp/; revision=440
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile66
1 files changed, 36 insertions, 30 deletions
diff --git a/Makefile b/Makefile
index 2679d0e..4999b88 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,24 @@
include Makefile.config
-PDP_DISTRO = $(PDP_DIR)/../pdp-$(PDP_VERSION)
-PDP_TARBALL = $(PDP_DISTRO).tar.gz
-PDP_WWWDIR = /net/zwizwa/www/zwizwa.fartit.com/pd/pdp
-PDP_WWWTESTDIR = /net/zwizwa/www/zwizwa.fartit.com/pd/pdp/test
-all: pdp.pd_linux
-
-include Makefile.$(PDP_TARGET)
+all: $(PDP_TARGET)
pdp_all:
make -C system
make -C modules
+darwin: pdp_all
+ rm -f pdp.pd_darwin
+ $(CC) -bundle -bundle_loader $(PD_EXECUTABLE) -o pdp.pd_darwin modules/*.o system/*.o $(PDP_LIBS)
+
+linux: pdp_all
+ rm -f pdp.pd_linux
+ $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*.o system/*.o $(PDP_LIBS)
+
+linux_mmx: pdp_all
+ rm -f pdp.pd_linux
+ $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*.o system/*.o system/mmx/*.o $(PDP_LIBS)
+
buildclean:
make -C include clean
make -C system clean
@@ -25,6 +31,14 @@ clean: buildclean
distroclean: buildclean
make -C scaf clean
+mrproper: clean
+ make -C scaf mrproper
+ rm -rf configure
+ rm -rf config.log
+ rm -rf config.status
+ rm -rf autom4te.cache
+ rm -rf Makefile.config
+
tags:
etags --language=auto include/*.h system/mmx/*.s system/*.c modules/*.c
@@ -32,26 +46,18 @@ tagsclean:
rm -f TAGS
-
-distro: distroclean
- rm -rf $(PDP_DISTRO)
- mkdir $(PDP_DISTRO)
- cp -av $(PDP_DIR)/* $(PDP_DISTRO)
- #strip --strip-unneeded $(PDP_DISTRO)/pdp.pd_linux
- rm -rf $(PDP_DISTRO)/CVS
- rm -rf $(PDP_DISTRO)/*/CVS
- rm -rf $(PDP_DISTRO)/*/*/CVS
- rm -rf $(PDP_DISTRO)/*/*.o
- rm -rf $(PDP_DISTRO)/*/TAGS
- cd $(PDP_DISTRO)/.. && tar vczf pdp-$(PDP_VERSION).tar.gz pdp-$(PDP_VERSION)
- rm -rf $(PDP_DISTRO)
-
-www: $(PDP_TARBALL)
- cp -av $(PDP_TARBALL) $(PDP_WWWDIR)
- cp -av $(PDP_DIR)/README $(PDP_WWWDIR)/README.txt
- cp -av $(PDP_DIR)/doc/reference.txt $(PDP_WWWDIR)/REFERENCE.txt
- cp -av $(PDP_DIR)/CHANGES.LOG $(PDP_WWWDIR)/CHANGELOG.txt
-
-
-www-test:$(PDP_TARBALL)
- cp -av $(PDP_TARBALL) $(PDP_WWWTESTDIR)
+install: all
+ #check if pd is installed. if this fails make install will stop here.
+ test -d $(prefix)/lib/pd
+ install -m 755 $(PDP_LIBRARY_NAME) $(prefix)/lib/pd/externs
+ install -m 755 -d $(prefix)/include/pdp
+ install -m 644 include/*.h $(prefix)/include/pdp
+ install -m 644 abstractions/*.pd $(prefix)/lib/pd/externs
+ 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