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) 2006-2018 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 2 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, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 #
19 # ----------------------------------------------------------------------------
20
21
22 PREFIX ?= /usr/local
23 BINDIR ?= $(PREFIX)/bin
24 SHARED ?= $(PREFIX)/share/ambdec
25
26 VERSION = 0.7.1
27 CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -DSHARED=\"$(SHARED)\"
28 CXXFLAGS += -O2 -ffast-math -Wall
29 CXXFLAGS += -march=native
30
31
32 all: ambdec ambdec_cli
33
34
35 AMBDEC_O = ambdec.o styles.o mainwin.o confwin.o radbut.o filewin.o \
36 jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o \
37 png2img.o meter.o
38 ambdec: CPPFLAGS += $(shell pkgconf --cflags freetype2)
39 ambdec: LDLIBS += -lclxclient -lclthreads -ljack -lpng -lpthread -lXft -lX11 -lrt
40 ambdec: $(AMBDEC_O)
41 $(CXX) $(LDFLAGS) -o $@ $(AMBDEC_O) $(LDLIBS)
42 $(AMBDEC_O):
43 -include $(AMBDEC_O:%.o=%.d)
44
45
46
47 AMBDEC_CLI_O = ambdec_cli.o jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o
48 ambdec_cli: LDLIBS += -lclthreads -lpthread -ljack -lrt
49 ambdec_cli: $(AMBDEC_CLI_O)
50 $(CXX) $(LDFLAGS) -o $@ $(AMBDEC_CLI_O) $(LDLIBS)
51 $(AMBDEC_CLI_O):
52 -include $(AMBDEC_CLI_O:%.o=%.d)
53
54
55 install: all
56 install -d $(DESTDIR)$(BINDIR)
57 install -d $(DESTDIR)$(SHARED)
58 install -m 755 ambdec $(DESTDIR)$(BINDIR)
59 install -m 755 ambdec_cli $(DESTDIR)$(BINDIR)
60 install -m 644 ../share/* $(DESTDIR)$(SHARED)
61
62
63 uninstall:
64 rm -f $(DESTDIR)$(BINDIR)/ambdec
65 rm -f $(DESTDIR)$(BINDIR)/ambdec_cli
66 rm -rf $(DESTDIR)$(SHARED)
67
68
69 clean:
70 rm -f *~ *.o *.a *.d *.so
71 rm -f ambdec
72 rm -f ambdec_cli
73