aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 718c42b92273c2d0b009df0270d574bbbb400435 (plain)
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
## Process this file with automake to produce Makefile.in. -*-Makefile-*-

SUFFIXES = .pd_linux

pddir = @PDDIR@

## Make and install the shared libraries.

pdinstalldir = $(pddir)/extra/rhythm_estimator

# Automake won't accept something ending in ".pd_linux" as a library
pdinstall_PROGRAMS = \
	rhythm_ioi_histogram.pd_linux \
	rhythm_quantum.pd_linux \
	rhythm_slave_metro.pd_linux

rhythm_ioi_histogram_pd_linux_SOURCES = \
	pd_rhythm_estimator.c \
	pd_rhythm_estimator.h \
	pd_rhythm_ioi_histogram.c \
	pd_rhythm_ioi_histogram.h \
	rhythm_estimator.h \
	rhythm_ioi_histogram.c \
	rhythm_ioi_histogram.h

rhythm_quantum_pd_linux_SOURCES = \
	pd_rhythm_estimator.c \
	pd_rhythm_estimator.h \
	pd_rhythm_quantum.c \
	pd_rhythm_quantum.h \
	rhythm_estimator.h \
	rhythm_quantum.c \
	rhythm_quantum.h

rhythm_slave_metro_pd_linux_SOURCES = \
	pd_rhythm_estimator.c \
	pd_rhythm_estimator.h \
	pd_rhythm_slave_metro.c \
	pd_rhythm_slave_metro.h \
	rhythm_estimator.h \
	rhythm_slave_metro.c \
	rhythm_slave_metro.h

pdincludedir = $(pddir)/src
INCLUDES = -I$(top_srcdir) -I$(pdincludedir)
CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow -Wstrict-prototypes -Werror \
    -Wno-unused -Wno-parentheses -Wno-switch
LDFLAGS = --export-dynamic -shared

## Install the documentation.

pdinstall_DATA = \
	AUTHORS \
	COPYING \
	NEWS \
	README \
	TODO \
	bang-eater.pd \
	cama99.ps \
	click1.wav \
	click2.wav \
	drumboy~.pd \
	drunk-metro.pd \
	ping~.pd \
	rhythm_estimator.pd \
	rhythm_estimator_example.pd \
	rhythm_estimator_example2.pd

## My kludge
noinst_SCRIPTS = libtoolkludge

EXTRA_DIST = $(pdinstall_DATA) $(noinst_SCRIPTS)