-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
108 lines (82 loc) · 4.16 KB
/
Makefile.am
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# $Id$
#
# KMidi Makefile
#
# Copyright 1997 Bernd Johannes Wuebben, wuebben@math.cornell.edu
#
#VERSION = 0.2i
KDE_OPTIONS = nofinal
ARTSFLAGS = `$(ARTSCCONFIG) --libs`
INCLUDES = `$(ARTSCCONFIG) --cflags` $(all_includes)
AM_CPPFLAGS = -DDEFAULT_PATH=\"$(TIMID_DIR)\" -DKMIDI $(EXTRADEFS) $(CPPFLAGS)
if GXXOPTIMIZE
KDE_CXXFLAGS = -O3 -fomit-frame-pointer -ffast-math
endif
AM_LDFLAGS = $(all_libraries) $(ARTSFLAGS) $(KDE_RPATH)
# Where to install the patches, config files, and MIDI files.
# If you change this, it's a good idea to recompile the binary,
# or you'll need to invoke timidity with the -L option.
TIMID_DIR = $(kde_datadir)/kmidi/config
bin_PROGRAMS = kmidi sf2cfg
check_PROGRAMS = dcopplay
dcopplay_SOURCES = dcopplay.cpp
dcopplay_LDADD = $(LIB_KDECORE)
kmidi_SOURCES = kmidi.cpp playlist.cpp bwlednum.cpp configdlg.cpp log.cpp \
docking.cpp table.cpp \
timidity.cpp common.cpp readmidi.cpp playmidi.cpp resample.cpp mix.cpp instrum.cpp \
tables.cpp controls.cpp output.cpp filter.cpp wave_a.cpp raw_a.cpp dumb_c.cpp \
sndfont.cpp readsbk.cpp ncurs_c.cpp slang_c.cpp ctl.cpp cfg.cpp \
linux_a.cpp linux_a2.cpp dec_a.cpp sun_a.cpp hpux_a.cpp hpux_d_a.cpp alsa_a.cpp \
bsd20_a.cpp esd_a.cpp nas_a.cpp arts_a.cpp \
b_out.cpp fffload.cpp \
effects.cpp reverb_e.cpp chorus_e.cpp phaser_e.cpp celeste_e.cpp \
resample_l.cpp resample_f.cpp midiapplication.cpp kmidiframe.cpp \
kmidifiledlg.cpp qttableview.cpp configclass.cpp
kmidi_LDADD = $(LIB_KFILE) $(LIBALIB) $(LIBAUDIO) $(LIBMME) $(EXTRALIBS)
kmidi_LDFLAGS = $(all_libraries) $(ARTSFLAGS) $(KDE_RPATH)
sf2cfg_SOURCES = sf2cfg.cpp readsbk.cpp
sf2cfg_LDADD =
noinst_HEADERS = kmidi.h playlist.h bwlednum.h configdlg.h \
docking.h table.h \
config.h common.h readmidi.h playmidi.h resample.h mix.h instrum.h \
tables.h controls.h output.h filter.h log.h version.h filepic.h \
cduppic.h folderpic.h sbk.h sflayer.h ctl.h effects.h \
midiapplication.h kmidiframe.h kmidifiledlg.h qttableview.h \
configclass.h
METASOURCES = AUTO
SUBDIRS = config bitmaps prep-TIMIDITY TIMIDITY BITMAPS
xdg_apps_DATA = kmidi.desktop
KDE_ICON = kmidi
picsdir = $(kde_datadir)/kmidi/pics
pics_DATA = kmidilogo.png
EXTRA_DIST = $(xdg_apps_DATA) $(pics_DATA)
#cfg.cpp: cfg.l
# rm -f cfg.cpp
# flex -t -B $(srcdir)/cfg.l >cfg.cpp
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TIMID_DIR)/patch
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/sologrnd.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/sologrnd.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/nylongt2.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/nylongt2.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/kick2.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/kick2.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/kick1.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/kick1.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/hihatcl.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/hihatcl.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/cymride1.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/cymride1.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
if [ ! -f $(DESTDIR)$(TIMID_DIR)/patch/acbass.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/acbass.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
@echo ""
@echo "Sound Patches:"
@echo "Only a simple piano and guitar sound patch and 3 drum patches come with "
@echo "this distribution. For normal playing of midis, you'll need a full patch"
@echo "set -- either a sf2 SoundFont (preferably) or a set of GUS .pat files. For"
@echo "more info look at kmidi's configure window, or read the KMidi Manual or the"
@echo "README file."
@echo ""
@echo "Have fun with kmidi -- Bernd Wuebben <wuebben@kde.org>, Greg Lee <lee@hawaii.edu>"
uninstall-local:
rm -f $(DESTDIR)$(TIMID_DIR)/patch/acbass.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/cymride1.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/hihatcl.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/kick1.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/kick2.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/nylongt2.pat
rm -f $(DESTDIR)$(TIMID_DIR)/patch/sologrnd.pat