Debian Codegraph @

source/Makefile

raw symbols ◀ ▶ SCIP
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 PKGCONF ?= pkgconf
26
27 VERSION = 0.7.1
28 CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\" -DSHARED=\"$(SHARED)\"
29 CXXFLAGS += -O2 -ffast-math -Wall
•30 # CXXFLAGS += -march=native
31
32
33 all: ambdec ambdec_cli
34
35
36 AMBDEC_O = ambdec.o styles.o mainwin.o confwin.o radbut.o filewin.o \
37 jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o \
38 png2img.o meter.o
•39 ambdec: CPPFLAGS += $(shell $(PKGCONF) --cflags xft libpng x11)
40 ambdec: LDLIBS += -lclxclient -lclthreads -ljack -lpthread $(shell $(PKGCONF) --libs xft libpng x11) -lrt
41 ambdec: $(AMBDEC_O)
42 $(CXX) $(LDFLAGS) -o $@ $(AMBDEC_O) $(LDLIBS)
43 $(AMBDEC_O):
44 -include $(AMBDEC_O:%.o=%.d)
45
46
47
48 AMBDEC_CLI_O = ambdec_cli.o jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o
49 ambdec_cli: LDLIBS += -lclthreads -lpthread -ljack -lrt
50 ambdec_cli: $(AMBDEC_CLI_O)
51 $(CXX) $(LDFLAGS) -o $@ $(AMBDEC_CLI_O) $(LDLIBS)
52 $(AMBDEC_CLI_O):
53 -include $(AMBDEC_CLI_O:%.o=%.d)
54
55
56 install: all
57 install -d $(DESTDIR)$(BINDIR)
58 install -d $(DESTDIR)$(SHARED)
59 install -m 755 ambdec $(DESTDIR)$(BINDIR)
60 install -m 755 ambdec_cli $(DESTDIR)$(BINDIR)
61 install -m 644 ../share/* $(DESTDIR)$(SHARED)
62
63
64 uninstall:
65 rm -f $(DESTDIR)$(BINDIR)/ambdec
66 rm -f $(DESTDIR)$(BINDIR)/ambdec_cli
67 rm -rf $(DESTDIR)$(SHARED)
68
69
70 clean:
71 rm -f *~ *.o *.a *.d *.so
72 rm -f ambdec
73 rm -f ambdec_cli
74