1
# --------------------------------------------------------------------------
3
# Copyright (C) 2004-2010 Fons Adriaensen <fons@kokkinizita.net>
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
19
# --------------------------------------------------------------------------
23
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
26
DISTDIR = japa-$(VERSION)
27
CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\" -I/usr/include/freetype2
28
#CPPFLAGS += -march=native
30
LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
31
LDLIBS += -lclalsadrv -lclthreads -lclxclient -lpthread -lfftw3f -ljack -lasound -lpthread -lXft -lX11 -lrt
34
JAPA_O = analyser.o audio.o gobjects.o japa.o mainwin.o styles.o rngen.o
36
g++ $(LDFLAGS) -o $@ $(JAPA_O) $(LDLIBS)
39
-include $(JAPA_O:%.o=%.d)
43
install -Dm 755 japa $(DESTDIR)$(PREFIX)/bin/japa
46
/bin/rm -f *~ *.o *.a *.d *.so japa