Follow changes in pkg.m4, fixing Gnome bug #166537, that happened on 2005-10-17 and...
[gmidimonitor.git] / Makefile.am
blobfc657f26eb62134b5a7af358dfe53ff163a30fef
2 # This file is part of gmidimonitor
4 # Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 bin_PROGRAMS = gmidimonitor
22 if HAVE_ALSA_MIDI
23 gmidimonitor_alsamidi_sources = alsa.c alsa.h
24 else
25 gmidimonitor_alsamidi_sources =
26 endif
28 if HAVE_JACK_MIDI
29 gmidimonitor_jackmidi_sources = jack.c jack.h
30 else
31 gmidimonitor_jackmidi_sources =
32 endif
34 gmidimonitor_SOURCES = main.c
35 gmidimonitor_SOURCES += common.h
36 gmidimonitor_SOURCES += list.h
37 gmidimonitor_SOURCES += log.h
38 gmidimonitor_SOURCES += about.c
39 gmidimonitor_SOURCES += path.c path.h
40 gmidimonitor_SOURCES += glade.c glade.h
41 gmidimonitor_SOURCES += gm.c gm.h
42 gmidimonitor_SOURCES += log.c log.h
43 gmidimonitor_SOURCES += memory_atomic.c memory_atomic.h
44 gmidimonitor_SOURCES += sysex.c sysex.h
45 gmidimonitor_SOURCES += $(gmidimonitor_alsamidi_sources)
46 gmidimonitor_SOURCES += $(gmidimonitor_jackmidi_sources)
48 gmidimonitor_CFLAGS =  -DDATA_DIR='"$(pkgdatadir)"' -Wall
49 #gmidimonitor_CFLAGS += -Werror
50 gmidimonitor_CFLAGS += @GTHREAD_CFLAGS@
51 gmidimonitor_CFLAGS += @GMODULE_CFLAGS@
52 gmidimonitor_CFLAGS += @GTK_CFLAGS@
53 gmidimonitor_CFLAGS += @LIBGLADE_CFLAGS@
54 gmidimonitor_CFLAGS += @LASH_CFLAGS@
55 gmidimonitor_CFLAGS += @ALSA_CFLAGS@
56 gmidimonitor_CFLAGS += @JACK_MIDI_CFLAGS@
58 gmidimonitor_LDADD = @GTHREAD_LIBS@
59 gmidimonitor_LDADD += @GMODULE_LIBS@
60 gmidimonitor_LDADD += @GTK_LIBS@
61 gmidimonitor_LDADD += @LIBGLADE_LIBS@
62 gmidimonitor_LDADD += @LASH_LIBS@
63 gmidimonitor_LDADD += @ALSA_LIBS@
64 gmidimonitor_LDADD += @JACK_MIDI_LIBS@
66 gmidimonitordir = $(pkgdatadir)
67 dist_gmidimonitor_DATA = gmidimonitor.glade