-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile.lnx
68 lines (54 loc) · 1.5 KB
/
makefile.lnx
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
# makefile for BTMHA under Linux
LIBS=-lsigpro -lchapro -larsc -lasound -ldl -lm -lz
CC=gcc
AR=ar
CFLAGS=-Wall -Wno-unknown-pragmas -Wno-unused-result -I$(INCDIR) -fPIC -O2
LFLAGS=-L$(LIBDIR)
LIBDIR=/usr/local/lib
INCDIR=/usr/local/include
BINDIR=/usr/local/bin
OFILES=eval.o optimize.o state.o interactive.o var_list.o process.o stream.o
PFILES=afc.o agc.o cfirfb.o ciirfb.o firfb.o gha.o icmp.o iirfb.o plugin.o plugin_ver.o
PGMS=btmha
all: $(PGMS) $(PLUGINS)
gha: $(PGMS) $(PLUGINS)
./btmha tst_gha intersect
tst: $(PGMS) $(PLUGINS)
./btmha tst_ifio
./btmha tst_ffio
./btmha tst_cifio
./btmha tst_cffio
./btmha tst_ifsc
./btmha tst_ffsc
./btmha tst_cifsc
./btmha tst_cffsc
./btmha tst_afc
btmha : btmha.o $(OFILES) libbtmha.a
$(CC) $(LFLAGS) -o $@ $^ $(LIBS)
libbtmha.a : $(PFILES)
$(AR) rs libbtmha.a $(PFILES)
install: $(PGMS)
cp -f $(PGMS) $(BINDIR)
zipsrc:
zip btmhasc *.mgw *.lnx *.mac
zip btmhasc *.h *.c *.m *.pl *.lst *.ico *.iss test/ca*.wav
zip btmhasc VS16/*.sln VS16/*.vcxproj VS16/*.filters VS16/*.rc VS16/*.h VS16/readme.txt
zip btmhasc configure configure.bat
dist: zipsrc
cp -f btmha*.zip ../dist
rm -f *.zip
clean:
rm -f *.o *.obj *.bak *.a *.exe $(PGMS)
rm -f *.mat *.wav *.cfg *~ *.so
rm -f gprof*.txt gmon.out
rm -f test/*.mat test/*_*.wav
# dependencies
btmha.o: btmha.h var_list.h version.h
eval.o: eval.h
gha.o: plugin_helper.h
interactive.o: btmha.h fk.h
optimize.o: btmha.h
load.o: btmha.h
process.o: var_list.h btmha.h
state.o: btmha.h
var_list.o: eval.h var_list.h