-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (50 loc) · 2.17 KB
/
Makefile
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
# Makefile for shadylib
lib.name = shadylib
# add your .c source files, one object per file, to the SOURCES
# variable, help files will be included automatically, and for GUI
# objects, the matching .tcl file too
class.sources = moop~.c prepender.c shadylook~.c \
bpbuzz~.c neadsr~.c rcombf~.c tabread4hs~.c \
buzz~.c nead~.c rectoratord~.c tcheb~.c \
delreadc~.c near~.c rectorator~.c transpose~.c \
delwritec~.c nrcombf~.c rminus~.c triangulatord~.c \
dsrand~.c operatord~.c rootinfo.c triangulator~.c \
fmod~.c operator~.c rover~.c list-relim.c \
highest~.c phasorator~.c sampphase~.c \
inrange.c pib~.c scaler.c vdhs~.c \
pinb~.c scaler~.c voisim~.c log2.c \
modf~.c powclip~.c shadylook.c lag~.c \
multatord~.c siglinterp~.c realpass~.c noteson.c \
list-delim.c synlets.c frandom.c array-redraw.c \
downsample~.c ripbob~.c syphon.c percents.c \
iterate.c
# list all pd objects (i.e. myobject.pd) files here, and their helpfiles will
# be included automatically
datafiles = \
lmap.pd_lua \
$(wildcard *.pd) \
$(wildcard *.txt) \
$(empty)
datadirs = \
manual
shared.sources = \
libshadylib.c
# .. broke after pdlibbuilder 6.6.0
cflags = -DVERSION='"$(lib.version)"' -Wno-implicit-fallthrough
DATE_FMT = %Y/%m/%d at %H:%M:%S UTC
ifdef SOURCE_DATE_EPOCH
BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u "+$(DATE_FMT)")
endif
ifdef BUILD_DATE
cflags += -DBUILD_DATE='"$(BUILD_DATE)"'
endif
# include Makefile.pdlibbuilder from submodule directory 'pd-lib-builder'
PDLIBBUILDER_DIR=pd-lib-builder/
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
install: install-examples
install-examples: all
$(INSTALL_DIR) $(installpath)/examples/deprecated
$(INSTALL_DATA) $(wildcard examples/deprecated/*) \
"$(installpath)/examples/deprecated"
$(INSTALL_DATA) $(wildcard examples/*.tcl examples/*.pd examples/*.pd_lua) \
$(installpath)/examples