1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
include Makefile.config
# hc ?
#ifeq ($(OS_NAME),darwin)
#all: darwin
#else
#all: linux
#endif
all: $(PDP_TARGET)
everything: all
make -C opengl
make -C scaf
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 dynamic_lookup -twolevel_namespace -bundle_loader $(PD_EXECUTABLE)
linux: pdp_all
rm -f pdp.pd_linux
$(CC) -rdynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) $(LDFLAGS)
linux_mmx: linux
linux_gcc_mmx: linux
buildclean:
make -C include clean
make -C system clean
make -C puredata clean
make -C modules clean
backupclean:
rm -f *~ */*~ */*/*~
clean: buildclean backupclean
rm -f pdp.pd_linux
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
install -d $(DESTDIR)$(prefix)/lib/pd/extra/pdp
install -m 755 $(PDP_LIBRARY_NAME) $(DESTDIR)$(prefix)/lib/pd/extra/pdp
install -m 755 -d $(DESTDIR)$(prefix)/include/pdp
install -m 644 include/*.h $(DESTDIR)$(prefix)/include/pdp
install -m 644 abstractions/*.pd $(DESTDIR)$(prefix)/lib/pd/extra/pdp
install -m 644 doc/objects/*.pd $(DESTDIR)$(prefix)/lib/pd/extra/pdp
install -m 755 -d $(DESTDIR)$(prefix)/lib/pd/extra/pdp/introduction
install -m 755 -d $(DESTDIR)$(prefix)/lib/pd/extra/pdp/examples
install -m 644 doc/reference.txt $(DESTDIR)$(prefix)/lib/pd/extra/pdp
install -m 644 doc/introduction/*.pd $(DESTDIR)$(prefix)/lib/pd/extra/pdp/introduction
install -m 644 doc/examples/*.pd $(DESTDIR)$(prefix)/lib/pd/extra/pdp/examples
install -d $(DESTDIR)$(prefix)/bin
install -m 755 bin/pdp-config $(DESTDIR)$(prefix)/bin
snapshot:
bin/snapshot -d darcs
release:
bin/snapshot `bin/release-version`
@echo bump PDP_VERSION in configure.ac!
|