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
|
#!/usr/bin/make -f
# Makefile for pure data externals in lib creb.
# Needs Makefile.pdlibbuilder to work (https://github.com/pure-data/pd-lib-builder)
# per default, build a multi-object library
make-lib-executable=no
lib.name = creb
# special file that does not provide a class
lib.setup.sources = modules/setup.c
# all other C and C++ files in subdirs are source files per class
# (alternatively, enumerate them by hand)
class.sources = $(filter-out $(lib.setup.sources),$(wildcard modules/*.c modules++/*.cc))
datafiles = \
$(wildcard doc/*-help.pd abs/*.pd) \
creb-meta.pd \
CHANGES.LOG \
COPYING \
README \
TODO
#datadirs = \
#doc/examples
# pass current version (from creb-meta.pd) to the compiler
#cflags = -DCREB_VERSION=\"$(shell $(SHELL) bin/version)\"
# default target 'all'
all:
pre: bootstrap
################################################################################
### pdlibbuilder ###############################################################
################################################################################
PDLIBBUILDER_DIR=pd-lib-builder/
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
################################################################################
### creb extra targets #########################################################
################################################################################
# install files with idiosyncratic source/destination paths
install: install-creb-extras
install-creb-extras: all
$(INSTALL_DIR) $(installpath)/manual && \
$(INSTALL_DATA) doc/reference.txt $(installpath)/manual
$(INSTALL_DIR) $(installpath)/examples && \
$(INSTALL_DATA) $(wildcard doc/examples/*.pd) $(installpath)/examples
|