added QJackMMC to makefile, fixed overflow bug in common.c
[jackctlmmc.git] / GNUmakefile
blob3b7bc9cefb0a145ca0d677b2652cf6b41915b184
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))
18 OBJECTS=main.o common.o
20 default: jackctlmmc qjackmmc
22 jackctlmmc: $(OBJECTS)
23 gcc $(LIBS) -o $@ $(OBJECTS)
25 qjackmmc:
26 cd qt; make
28 clean:
29 rm -f jackctlmmc
30 rm -f qjackmmc
31 rm -rf *.o
32 cd qt ; make clean
34 rebuild: clean jackctlmmc