Debian Codegraph @

source/Makefile

raw ◀ ▶
Source reconstructed at patch state 1 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
24 DESTDIR=
25 PREFIX = /usr
26 SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
27 LIBDIR = lib$(SUFFIX)
28 VERSION = 0.3.0
29 CPPFLAGS += -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(PREFIX)\"
30 CXXFLAGS += -O2 -Wall -MMD -MP
31 #CXXFLAGS += -march=native
32
33
34 all: aliki aliki-rt
35
36
37 ALIKI_O = aliki.o control.o mainwin.o splashwin.o captwin.o styles.o shmem.o extproc.o exptwin.o guiclass.o \
38 filewin.o sgenwin.o editwin.o filtwin.o invfilt.o impdata.o convolve.o calcthr.o acweight.o progwin.o
39
40 aliki: CPPFLAGS += -I/usr/include/freetype2
41 aliki: LDLIBS += -lclxclient -lclthreads -lsndfile -lfftw3f -lXft -lX11 -lpthread -lrt
42 aliki: LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR)
43 aliki: $(ALIKI_O)
44 g++ $(LDFLAGS) -o $@ $(ALIKI_O) $(LDLIBS)
45 $(ALIKI_O):
46 -include $(ALIKI_O:%.o=%.d)
47
48
49 ALIKI_RT_O = aliki-rt.o mainthr.o audiothr.o shmem.o lfqueue.o impdata.o
50
51 aliki-rt: LDLIBS += -lzita-alsa-pcmi -lclthreads -lsndfile -ljack -lasound -lpthread -lrt
52 aliki-rt: LDFLAGS += -L$(PREFIX)/$(LIBDIR)
53 aliki-rt: $(ALIKI_RT_O) $(LIBCLX)
54 g++ $(LDFLAGS) -o $@ $(ALIKI_RT_O) $(LDLIBS)
55 $(ALIKI_RT_O):
56 -include $(ALIKI_RT_O:%.o=%.d)
57
58
59
60 install: aliki aliki-rt
61 /usr/bin/install -d $(DESTDIR)$(PREFIX)/bin
62 /usr/bin/install -m 755 aliki $(DESTDIR)$(PREFIX)/bin
63 /usr/bin/install -m 755 aliki-rt $(DESTDIR)$(PREFIX)/bin
64
65 uninstall:
66 /bin/rm -f $(DESTDIR)$(PREFIX)/bin/aliki
67 /bin/rm -f $(DESTDIR)$(PREFIX)/bin/aliki-rt
68
69 clean:
70 /bin/rm -f *~ *.o *.a *.d *.so
71 /bin/rm -f aliki aliki-rt
72