~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmidi/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#       $Id: Makefile.am,v 1.70 2001/05/19 01:35:22 waba Exp $
 
3
#
 
4
#                           KMidi Makefile
 
5
#
 
6
#  Copyright 1997 Bernd Johannes Wuebben, wuebben@math.cornell.edu
 
7
#
 
8
 
 
9
VERSION = 0.2i
 
10
KDE_OPTIONS = nofinal
 
11
 
 
12
INCLUDES = `$(ARTSCCONFIG) --cflags` $(all_includes)
 
13
AM_CPPFLAGS = -DDEFAULT_PATH=\"$(TIMID_DIR)\" -DKMIDI $(EXTRADEFS) $(CPPFLAGS)
 
14
if GXXOPTIMIZE
 
15
KDE_CXXFLAGS = -O3 -fomit-frame-pointer -ffast-math
 
16
endif
 
17
LDFLAGS = $(all_libraries) `$(ARTSCCONFIG) --libs` $(KDE_RPATH)
 
18
#LDADD = $(LIB_KFILE) $(LIBALIB) $(LIBAUDIO) $(LIBMME) $(EXTRALIBS) -lsoundserver_idl -lartsflow
 
19
LDADD = $(LIB_KFILE) $(LIBALIB) $(LIBAUDIO) $(LIBMME) $(EXTRALIBS)
 
20
 
 
21
# Where to install the patches, config files, and MIDI files.
 
22
# If you change this, it's a good idea to recompile the binary,
 
23
# or you'll need to invoke timidity with the -L option.
 
24
TIMID_DIR = $(kde_datadir)/kmidi/config
 
25
 
 
26
 
 
27
bin_PROGRAMS = kmidi sf2cfg
 
28
 
 
29
 
 
30
check_PROGRAMS = dcopplay
 
31
 
 
32
dcopplay_SOURCES = dcopplay.cpp
 
33
dcopplay_LDADD = $(LIB_KDECORE)
 
34
 
 
35
kmidi_SOURCES = kmidi.cpp  playlist.cpp bwlednum.cpp configdlg.cpp log.cpp \
 
36
        docking.cpp table.cpp \
 
37
        timidity.cpp common.cpp readmidi.cpp playmidi.cpp resample.cpp mix.cpp instrum.cpp \
 
38
        tables.cpp controls.cpp output.cpp filter.cpp wave_a.cpp raw_a.cpp dumb_c.cpp \
 
39
        sndfont.cpp readsbk.cpp ncurs_c.cpp slang_c.cpp ctl.cpp cfg.cpp \
 
40
        linux_a.cpp linux_a2.cpp dec_a.cpp sun_a.cpp hpux_a.cpp hpux_d_a.cpp alsa_a.cpp \
 
41
        bsd20_a.cpp esd_a.cpp nas_a.cpp arts_a.cpp \
 
42
        b_out.cpp fffload.cpp \
 
43
        effects.cpp reverb_e.cpp chorus_e.cpp phaser_e.cpp celeste_e.cpp \
 
44
        resample_l.cpp resample_f.cpp midiapplication.cpp kmidiframe.cpp \
 
45
        kmidifiledlg.cpp
 
46
 
 
47
sf2cfg_SOURCES = sf2cfg.cpp readsbk.cpp
 
48
sf2cfg_LDADD =
 
49
 
 
50
noinst_HEADERS = kmidi.h  playlist.h bwlednum.h configdlg.h \
 
51
        docking.h table.h \
 
52
        config.h common.h readmidi.h playmidi.h resample.h mix.h instrum.h \
 
53
        tables.h controls.h output.h filter.h log.h version.h filepic.h \
 
54
        cduppic.h folderpic.h sbk.h sflayer.h ctl.h effects.h \
 
55
        midiapplication.h kmidiframe.h kmidifiledlg.h
 
56
 
 
57
METASOURCES = AUTO
 
58
 
 
59
SUBDIRS = config bitmaps midis TIMIDITY BITMAPS
 
60
 
 
61
appsdir = $(kde_appsdir)/Multimedia
 
62
apps_DATA = kmidi.desktop
 
63
 
 
64
KDE_ICON = kmidi
 
65
 
 
66
picsdir = $(kde_datadir)/kmidi/pics
 
67
pics_DATA = kmidilogo.png 
 
68
 
 
69
EXTRA_DIST = $(apps_DATA) $(pics_DATA)
 
70
 
 
71
 
 
72
cfg.cpp: cfg.l
 
73
        rm -f cfg.cpp
 
74
        flex -t -B $(srcdir)/cfg.l >cfg.cpp
 
75
 
 
76
install-data-local:
 
77
        $(mkinstalldirs) $(TIMID_DIR)/patch
 
78
        if [ ! -f $(TIMID_DIR)/patch/sologrnd.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/sologrnd.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
79
        if [ ! -f $(TIMID_DIR)/patch/nylongt2.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/nylongt2.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
80
        if [ ! -f $(TIMID_DIR)/patch/kick2.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/kick2.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
81
        if [ ! -f $(TIMID_DIR)/patch/kick1.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/kick1.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
82
        if [ ! -f $(TIMID_DIR)/patch/hihatcl.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/hihatcl.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
83
        if [ ! -f $(TIMID_DIR)/patch/cymride1.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/cymride1.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
84
        if [ ! -f $(TIMID_DIR)/patch/acbass.pat ]; then $(INSTALL_DATA) $(srcdir)/config/patch/acbass.pat $(DESTDIR)$(TIMID_DIR)/patch ; fi
 
85
 
 
86
        @echo ""
 
87
        @echo "Midis:"
 
88
        @echo "I have included a couple of nice midis in the kmidi/midis directory."
 
89
        @echo "These are installed in KDEDIR/share/apps/kmidi."
 
90
        @echo ""
 
91
        @echo "Sound Patches:"
 
92
        @echo "Only a simple  piano and guitar sound patch and 3 drum patches come with "
 
93
        @echo "this distribution.  For normal playing of midis, you'll need a full patch"
 
94
        @echo "set -- either a sf2 SoundFont (preferably) or a set of GUS .pat files.  For"
 
95
        @echo "more info look at kmidi's configure window, or read the KMidi Manual or the"
 
96
        @echo "README file."
 
97
        @echo ""
 
98
        @echo "Have fun with kmidi -- Bernd Wuebben <wuebben@kde.org>, Greg Lee <lee@hawaii.edu>"
 
99
 
 
100
 
 
101
 
 
102
uninstall-local:
 
103
        rm -f $(TIMID_DIR)/patch/acbass.pat
 
104
        rm -f $(TIMID_DIR)/patch/cymride1.pat
 
105
        rm -f $(TIMID_DIR)/patch/hihatcl.pat
 
106
        rm -f $(TIMID_DIR)/patch/kick1.pat
 
107
        rm -f $(TIMID_DIR)/patch/kick2.pat
 
108
        rm -f $(TIMID_DIR)/patch/nylongt2.pat
 
109
        rm -f $(TIMID_DIR)/patch/sologrnd.pat
 
110