MMC step support; detect some other MMC commands
[jackctlmmc.git] / GNUmakefile
blob7d127a45f7b32b559fc1070d87864e0b60fff067
1 # Copyright (c) 2006,2007,2008 Nedko Arnaudov <nedko@arnaudov.name>
3 # This program is free software; you can redistribute it and/or modify it under
4 # the terms of the GNU General Public License as published by the Free Software
5 # Foundation; version 2 of the License.
6 #
7 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
8 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
9 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
11 # You should have received a copy of the GNU General Public License along
12 # with this program; if not, write to the Free Software Foundation, Inc.,
13 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15 CFLAGS := $(strip $(shell pkg-config --cflags lash-1.0 jack)) -Wall # -Werror
16 LIBS := $(strip $(shell pkg-config --libs lash-1.0 jack alsa))
18 QMAKE ?= qmake-qt4
20 OBJECTS=main.o common.o
22 default: jackctlmmc qjackmmc
24 jackctlmmc: $(OBJECTS)
25 gcc $(LIBS) -o $@ $(OBJECTS)
27 qjackmmc:
28 cd qt && $(QMAKE) -unix -o Makefile qjackmmc.pro && make
30 clean:
31 rm -f jackctlmmc
32 rm -f qjackmmc
33 rm -rf *.o
34 if test -f qt/Makefile ; then cd qt && make clean && rm Makefile src/Makefile ; fi
36 rebuild: clean jackctlmmc