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.
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
19 datarootdir ?
= @datarootdir@
20 exec_prefix ?
= @
exec_prefix@
25 PKG_CFLAGS
+= @ac_cflags@
28 OBJECTS
=main.o common.o
30 default
: @ac_default_deps@
31 install: @ac_default_install@
32 uninstall: @ac_default_uninstall@
37 $(CC
) $(CFLAGS
) $(PKG_CFLAGS
) -c
$<
39 jackctlmmc
: $(OBJECTS
)
40 $(CC
) $(CFLAGS
) $(PKG_CFLAGS
) $(LIBS
) -o
$@
$(OBJECTS
)
43 cd qt
&& $(QMAKE
) -o Makefile qjackmmc.pro
&& $(MAKE
)
46 cli_install
: jackctlmmc
47 $(INSTALL
) -v
-D .
/jackctlmmc
$(DESTDIR
)$(bindir)/jackctlmmc
50 $(INSTALL
) -v
-D .
/qjackmmc
$(DESTDIR
)$(bindir)/qjackmmc
51 $(INSTALL
) -v
-D qt
/images
/qjackmmc.png
$(DESTDIR
)$(datarootdir
)/pixmaps
/qjackmmc.png
52 $(INSTALL
) -v
-D qt
/qjackmmc.desktop
$(DESTDIR
)$(datarootdir
)/applications
/qjackmmc.desktop
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
66 if
test -f qt
/Makefile
; then cd qt
&& $(MAKE
) clean && rm Makefile src
/Makefile
; fi
68 rebuild
: clean default