- minor cleanups, removed kdevelop files.
[jackctlmmc.git] / GNUmakefile.in
blob46b7c57f17f9f0997575ce6e2f5ca0be7d85c42a
1 # Copyright (c) 2006-2011 Nedko Arnaudov <nedko@arnaudov.name>,
2 # Alex Montgomery <apmontgo@users.sourceforge.net>
4 # This program is free software; you can redistribute it and/or modify it under
5 # the terms of the GNU General Public License as published by the Free Software
6 # Foundation; version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
9 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
12 # You should have received a copy of the GNU General Public License along
13 # with this program; if not, write to the Free Software Foundation, Inc.,
14 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 @SET_MAKE@
18 prefix ?= @prefix@
19 datarootdir ?= @datarootdir@
20 exec_prefix ?= @exec_prefix@
21 bindir ?= @bindir@
23 QMAKE = @ac_qmake@
24 INSTALL = @INSTALL@
25 PKG_CFLAGS += @ac_cflags@
26 LIBS += @ac_libs@
28 OBJECTS=main.o common.o
30 default: @ac_default_deps@
31 install: @ac_default_install@
32 uninstall: @ac_default_uninstall@
34 .SUFFIXES : .o .c
36 .c.o :
37 $(CC) $(CFLAGS) $(PKG_CFLAGS) -c $<
39 jackctlmmc: $(OBJECTS)
40 $(CC) $(CFLAGS) $(PKG_CFLAGS) $(LIBS) -o $@ $(OBJECTS)
42 qjackmmc:
43 cd qt && $(QMAKE) -o Makefile qjackmmc.pro && $(MAKE)
46 cli_install: jackctlmmc
47 $(INSTALL) -v -D -m 0755 ./jackctlmmc $(DESTDIR)$(bindir)/jackctlmmc
49 gui_install: qjackmmc
50 $(INSTALL) -v -D -m 0755 ./qjackmmc $(DESTDIR)$(bindir)/qjackmmc
51 $(INSTALL) -v -D -m 0644 qt/images/qjackmmc.png $(DESTDIR)$(datarootdir)/pixmaps/qjackmmc.png
52 $(INSTALL) -v -D -m 0644 qt/qjackmmc.desktop $(DESTDIR)$(datarootdir)/applications/qjackmmc.desktop
54 cli_uninstall:
55 rm -vf $(DESTDIR)$(bindir)/jackctlmmc
57 gui_uninstall: qjackmmc
58 rm -vf $(DESTDIR)$(bindir)/qjackmmc
59 rm -vf $(DESTDIR)$(datarootdir)/pixmaps/qjackmmc.png
60 rm -vf $(DESTDIR)$(datarootdir)/applications/qjackmmc.desktop
62 clean:
63 rm -f jackctlmmc
64 rm -f qjackmmc
65 rm -rf *.o
66 if test -f qt/Makefile ; then cd qt && $(MAKE) clean && rm Makefile src/Makefile ; fi
68 rebuild: clean default