Debian Codegraph @

source/Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # ----------------------------------------------------------------------------
2 #
3 # Copyright (C) 2003-2013 Fons Adriaensen <[email protected]>
4 #
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 3 of the License, or
8 # (at your option) any later version.
9 #
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.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #
18 # ----------------------------------------------------------------------------
19
20
21 # Modify as required.
22 #
23 PREFIX = /usr/local
24 SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
25 LIBDIR = lib$(SUFFIX)
26 VERSION = 0.3.0
27 CPPFLAGS += -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\"
28 CXXFLAGS += -O2 -Wall -MMD -MP
29 CXXFLAGS += -march=native
30
31
32 all: aliki aliki-rt
33
34
35 ALIKI_O = aliki.o control.o mainwin.o splashwin.o captwin.o styles.o shmem.o extproc.o exptwin.o guiclass.o \
36 filewin.o sgenwin.o editwin.o filtwin.o invfilt.o impdata.o convolve.o calcthr.o acweight.o progwin.o
37
38 aliki: CPPFLAGS += -I/usr/include/freetype2
39 aliki: LDLIBS += -lclxclient -lclthreads -lsndfile -lfftw3f -lXft -lX11 -lpthread -lrt
40 aliki: LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
41 aliki: $(ALIKI_O)
42 g++ $(LDFLAGS) -o $@ $(ALIKI_O) $(LDLIBS)
43 $(ALIKI_O):
44 -include $(ALIKI_O:%.o=%.d)
45
46
47 ALIKI_RT_O = aliki-rt.o mainthr.o audiothr.o shmem.o lfqueue.o impdata.o
48
49 aliki-rt: LDLIBS += -lzita-alsa-pcmi -lclthreads -lsndfile -ljack -lasound -lpthread -lrt
50 aliki-rt: LDFLAGS += -L$(PREFIX)/$(LIBDIR)
51 aliki-rt: $(ALIKI_RT_O) $(LIBCLX)
52 g++ $(LDFLAGS) -o $@ $(ALIKI_RT_O) $(LDLIBS)
53 $(ALIKI_RT_O):
54 -include $(ALIKI_RT_O:%.o=%.d)
55
56
57
58 install: aliki aliki-rt
59 install -m 755 aliki $(DESTDIR)$(PREFIX)/bin
60 install -m 755 aliki-rt $(DESTDIR)$(PREFIX)/bin
61
62 uninstall:
63 /bin/rm -f $(DESTDIR)$(PREFIX)/bin/aliki
64 /bin/rm -f $(DESTDIR)$(PREFIX)/bin/aliki-rt
65
66 clean:
67 /bin/rm -f *~ *.o *.a *.d *.so
68 /bin/rm -f aliki aliki-rt
69