1
AUTOMAKE_OPTIONS = foreign
3
pd_CFLAGS = -DPD -DINSTALL_PREFIX=\"$(prefix)\"
12
SUFFIXES = .@EXTENSION@ .@SHARED_LIB@
14
bin_PROGRAMS = pd pdsend pdreceive
15
pdsend_SOURCES = u_pdsend.c
16
pdreceive_SOURCES = u_pdreceive.c
17
pd_watchdog_SOURCES = s_watchdog.c
19
pd_SOURCES = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c \
20
g_io.c g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \
21
g_all_guis.c g_bang.c g_hdial.c g_hslider.c g_mycanvas.c g_numbox.c \
22
g_toggle.c g_vdial.c g_vslider.c g_vumeter.c \
23
m_pd.c m_class.c m_obj.c m_atom.c m_memory.c m_binbuf.c \
24
m_conf.c m_glob.c m_sched.c \
25
s_main.c s_inter.c s_file.c s_print.c \
26
s_loader.c s_path.c s_entry.c s_audio.c s_midi.c \
28
d_ugen.c d_ctl.c d_arithmetic.c d_osc.c d_filter.c d_dac.c d_misc.c \
29
d_math.c d_fft.c d_array.c d_global.c \
30
d_delay.c d_resample.c \
31
x_arithmetic.c x_connective.c x_interface.c x_midi.c x_misc.c \
32
x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c x_list.c d_soundfile.c
34
pd_includedir = ${includedir}/pd
35
pd_include_HEADERS = m_pd.h m_imp.h g_canvas.h s_stuff.h g_all_guis.h
36
# compatibility: m_pd.h also goes into ${includedir}/
37
include_HEADERS = m_pd.h
38
noinst_HEADERS = g_all_guis.h s_audio_alsa.h s_audio_paring.h s_utf8.h
40
# we want these in the dist tarball
41
EXTRA_DIST = CHANGELOG.txt notes.txt makefile.mingw
43
# configurations per library
45
pd_CFLAGS += -DUSEAPI_ALSA
46
pd_SOURCES += s_audio_alsa.c s_audio_alsamm.c s_midi_alsa.c
50
LIBS += -framework CoreAudio -framework CoreMIDI \
51
-framework AudioUnit -framework AudioToolbox
55
pd_SOURCES += d_fft_fftw.c d_fftroutine.c
57
pd_SOURCES += d_fft_mayer.c d_fftroutine.c
60
# TODO support Jack xrun
62
pd_CFLAGS += -DUSEAPI_JACK -DJACK_XRUN
63
pd_SOURCES += s_audio_jack.c
65
LIBS += -weak_framework Jackmp
71
# Cygwin has a function OSS /dev/dsp, but not MIDI, and Pd is only set up to
72
# handle a single MIDI API
75
pd_CFLAGS += -DUSEAPI_OSS
76
pd_SOURCES += s_audio_oss.c s_midi_oss.c
81
pd_CFLAGS += -DUSEAPI_PORTAUDIO -I../portaudio/include
82
pd_LDADD += ../portaudio/libportaudio.la
83
pd_SOURCES += s_audio_pa.c s_audio_paring.c
86
# ASIO needs to go after PORTAUDIO in order for it to link properly
88
pd_LDADD += ../asio/libasio.la
92
INCLUDES += -I../portmidi/pm_common -I../portmidi/porttime
93
pd_LDADD += ../portmidi/libportmidi.la
94
pd_SOURCES += s_midi_pm.c
99
# GNU/HURD, IPHONEOS, ... have no MIDI (not even OSS)
100
# i think it would be better to add s_midi_dummy.c only if no other midi API can be found
101
# (without OS-specific checks)
102
# even better would be, to allow Pd to have simply have no MIDI (nor AUDIO)
104
pd_SOURCES += s_midi_dummy.c
108
pd_SOURCES += s_midi_dummy.c
112
libpdbindir = $(pkglibdir)/bin
114
libpdbin_PROGRAMS = pd-watchdog pd
115
# this flag has to have a single leading "-" for libtool, even though ld uses
116
# --export-dynamic, and libtool sends -Wl,--export-dynamic to ld...
117
pd_LDFLAGS += -export-dynamic
118
# on Ubuntu/Karmic 9.10, it doesn't seem to find libm, so force it
119
pd_LDFLAGS += $(LIBM)
123
LIBS += -framework Carbon
124
pd_CFLAGS += -DMACOSX #kludge, should use auto macro __APPLE__
126
bin_PROGRAMS += pd-watchdog
130
LIBS += -lwsock32 -lwinmm -lole32
131
pd_CFLAGS += -DUSEAPI_MMIO -DPD_INTERNAL
132
pd_SOURCES += s_audio_mmio.c s_midi_mmio.c
136
# Cygwin is not _WIN32 and MSW vaguely means the same thing, so MINGW only
138
pd_CFLAGS += -DWISHAPP='"wish85.exe"' -DMSW #kludge, MSW should be _WIN32
139
pdsend_CFLAGS += -DMSW #kludge, should use _WIN32
140
pdreceive_CFLAGS += -DMSW #kludge, should use _WIN32
141
bin_PROGRAMS += pd-watchdog
145
etags --append --language=none --regex="/proc[ \t]+\([^ \t]+\)/\1/" *.tcl