Repository navigation
Expand file tree
/
Copy pathmakefile.arm
More file actions
71 lines (56 loc) · 1.58 KB
/
Copy pathmakefile.arm
File metadata and controls
71 lines (56 loc) · 1.58 KB
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
# makefile for BTMHA cross-compilation to Linux/ARM
LIBS=-lsigpro -lchapro -larsc -lasound -ldl -lm
CC=arm-linux-gnueabihf-gcc
AR=arm-linux-gnueabihf-ar
CFLAGS=-Wall -Wno-unknown-pragmas -Wno-unused-result -I$(INCDIR) -fPIC -O2
LFLAGS=-L$(LIBDIR)
LIBDIR=/usr/local/arm/lib
INCDIR=/usr/local/arm/include
BINDIR=/usr/local/arm/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: btmha
mkdir -p $(BINDIR)
install btmha $(BINDIR)
zipsrc:
zip btmhasc *.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
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
clean_test:
rm -f test/*.mat test/tst_*.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