Debian Codegraph @

source/Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # -------------------------------------------------------------------------
2 #
3 # Copyright (C) 2010-2023 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/ebumeter
25
26 VERSION = 0.5.1
27 CPPFLAGS += -MMD -MP -DVERSION=\"$(VERSION)\"
28 CXXFLAGS += -O2 -Wall -ffast-math -pthread
29 CXXFLAGS += -march=native
30
31
32 all: ebur128 ebumeter
33
34
35 EBUR128_O = ebur128.o ebu_r128_proc.o peak_proc.o audiofile.o dither.o
36 ebur128: LDLIBS += -lsndfile -lzita-resampler
37 ebur128: $(EBUR128_O)
38 $(CXX) $(LDFLAGS) -o $@ $(EBUR128_O) $(LDLIBS)
39 $(EBUR128_O):
40 -include $(EBUR128_O:%.o=%.d)
41
42
43 EBUMETER_O = ebumeter.o jclient.o mainwin.o styles.o ebu_r128_proc.o \
44 ebu_r128_disp.o peak_proc.o png2img.o button.o guiclass.o
45 ebumeter: CPPFLAGS += $(shell pkgconf --cflags freetype2)
46 ebumeter: CPPFLAGS += -DSHARED=\"$(SHARED)\"
47 ebumeter: LDLIBS += -lclthreads -lclxclient -lzita-resampler \
48 -lpthread -ljack -lpng -lXft -lpng -lX11 -lrt
49 ebumeter: $(EBUMETER_O)
50 $(CXX) $(LDFLAGS) -o $@ $(EBUMETER_O) $(LDLIBS)
51 $(EBUMETER_O):
52 -include $(EBUMETER_O:%.o=%.d)
53
54
55 install: all
56 install -d $(DESTDIR)$(BINDIR)
57 install -d $(DESTDIR)$(SHARED)
58 install -m 755 ebur128 $(DESTDIR)$(BINDIR)
59 install -m 755 ebumeter $(DESTDIR)$(BINDIR)
60 rm -rf $(DESTDIR)$(SHARED)/*
61 install -m 644 ../share/* $(DESTDIR)$(SHARED)
62
63
64 uninstall:
65 rm -f $(DESTDIR)$(BINDIR)/ebumeter
66 rm -f $(DESTDIR)$(BINDIR)/ebur128
67 rm -rf $(DESTDIR)$(SHARED)
68
69
70 clean:
71 rm -f *~ *.o *.a *.d *.so ebumeter ebur128
72