File: Makefile

package info (click to toggle)
libaudiomask 1.0-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 17,668 kB
  • ctags: 636
  • sloc: cpp: 787; perl: 108; makefile: 67
file content (76 lines) | stat: -rw-r--r-- 2,860 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# libaudiomask - hybrid simultaneous audio masking threshold evaluation library
#    Copyright (C) 2000-2010  Dr Matthew Raphael Flax
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

SBINDIR=usr/sbin
MANDIR=usr/man
INCLUDEDIR=usr/include/mffm
DOCDIR=usr/share/doc/libaudiomask-dev
LIBDIR=usr/lib

SRC=MooreSpread.cc AudioMask.cc AudioMasker.cc depukfb.cc 
HDR=$(SRC:.cc=.cc)
OBJ=$(SRC:.cc=.o)
.cc.o:
	$(CC) -fPIC -c $<
.C.o:
	$(CC) -fPIC -c $<

CC=g++ -O3 -Wall

MAKELIB=$(CC) -shared -Wl,-soname

all: $(OBJ) \
	libs

libs:
	$(MAKELIB),libAudioMask.so.1.0 -o libAudioMask.so.1.0 $(OBJ) -lfft

ex:
	$(CC) -L/home/flatmax/lib -lfftw3 -lfft -lAudioMask -o AudioMaskerExample AudioMaskerExample.cc

install:
	mkdir -p ${DESTDIR}
	mkdir -p ${DESTDIR}/${LIBDIR}
	mkdir -p ${DESTDIR}/${DOCDIR}
	mkdir -p ${DESTDIR}/${INCLUDEDIR}
	install -m 0755 *.so*  ${DESTDIR}/${LIBDIR}
	ln -s libAudioMask.so.1.0 ${DESTDIR}/${LIBDIR}/libAudioMask.so.1
	ln -s libAudioMask.so.1 ${DESTDIR}/${LIBDIR}/libAudioMask.so
	install -m 0666 *Example.cc ${DESTDIR}/${DOCDIR}
	install -m 0666 Makefile ${DESTDIR}/${DOCDIR}
	install -d ${DESTDIR}/${DOCDIR}/API-libaudiomask/search
	install -m 0666 API-libaudiomask/*.html ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/*.png ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/*.css ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/installdox ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/*.jpg ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/*.gif ${DESTDIR}/${DOCDIR}/API-libaudiomask/
	install -m 0666 API-libaudiomask/search/* ${DESTDIR}/${DOCDIR}/API-libaudiomask/search/
	install -m 0666 *Example.cc ${DESTDIR}/${DOCDIR}
	install -m 0666 *.txt ${DESTDIR}/${DOCDIR}
	install -m 0666 GPL-3 ${DESTDIR}/${DOCDIR}
	install -m 0666 *.m ${DESTDIR}/${DOCDIR}
	install -m 0666 *.pdf ${DESTDIR}/${DOCDIR}
	install -m 0666 *.jpg ${DESTDIR}/${DOCDIR}
	install -m 0660 *.H ${DESTDIR}/${INCLUDEDIR}

clean:
	rm -f *~ $(OBJ) AudioMaskerExample AudioMaskExample MooreSpreadExample lib* *.mask *.dat *.pow w *.s

MooreSpread.o: MooreSpread.H
mask.o: MooreSpread.H mask.H
AudioMasker.o: AudioMasker.H depukfb.H