-
Notifications
You must be signed in to change notification settings - Fork 13
/
makefile.arm
101 lines (84 loc) · 2.85 KB
/
makefile.arm
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# makefile for CHAPRO cross-compilation to Linux/ARM
# Library requirement: sigpro
# Package requirement: gcc-arm-linux-gnueabihf
LIBS=-lsigpro -lm
SCLIB=-larsc -lasound $(LIBS)
CC=arm-linux-gnueabihf-gcc
AR=arm-linux-gnueabihf-ar
CFLAGS=-Wall -Wno-unknown-pragmas -I$(INCDIR) -fPIC -O3
LFLAGS=-L$(LIBDIR)
LIBDIR=/usr/local/arm/lib
INCDIR=/usr/local/include
BINDIR=
CHAPRO=cha_core.o cha_scale.o db.o fft.o rfft.o \
agc_prepare.o agc_process.o \
cfirfb_prepare.o cfirfb_process.o \
firfb_prepare.o firfb_process.o \
iirfb_design.o iirfb_prepare.o iirfb_process.o \
ciirfb_design.o ciirfb_prepare.o ciirfb_process.o \
afc_prepare.o afc_filters.o afc_process.o \
nfc_prepare.o nfc_process.o \
sha_prepare.o sha_process.o \
icmp_prepare.o icmp_process.o
PGMS=tst_nad tst_sha tst_gtfb tst_nfc
all: $(PGMS)
tst_gtfb.c : tst_cifsc.c nad.sed
sed -f nad.sed tst_cifsc.c > tst_gtfb.c
tst_nad : tst_nad.o libchapro.a
$(CC) $(LFLAGS) -o $@ $^ $(LIBS)
tst_sha : tst_sha.o libchapro.a
$(CC) $(LFLAGS) -o $@ $^ $(LIBS)
tst_nfc : tst_nfc.o libchapro.a
$(CC) $(LFLAGS) -o $@ $^ $(LIBS)
tst_gtfb : tst_gtfb.o libchapro.a
$(CC) $(LFLAGS) -o $@ $^ $(LIBS)
libchapro.a: $(CHAPRO)
$(AR) rs libchapro.a $(CHAPRO)
$(LIBDIR)/libchapro.a : libchapro.a
mkdir -p $(LIBDIR)
cp -f libchapro.a $(LIBDIR)
install: $(LIBDIR)/libchapro.a $(PGMS)
scp $(PGMS) [email protected]:/home/mha
zipsrc:
zip chaprosc *.mgw *.lnx *.mac *.arm *.sed
zip chaprosc *.h *.c *.m *.def test/cat.wav
zip chaprosc VS16/*.sln VS16/*.vcxproj VS16/*.filters
zip chaprosc configure configure.bat
dist: zipsrc
cp -f chapr*.zip ../dist
rm -f *.zip
clean:
rm -f *.o *.obj *.bak *.a *.exe $(PGMS)
rm -f out*.mat out*.wav *.cfg *~ *.so
rm -f $(PGMS) gprof*.txt gmon.out test.lst
rm -f test.lst test/*.mat test/tst_*.wav
# dependencies
afc_prepare.o: afc_prepare.c chapro.h ite_fb.h
afc_filters.o: afc_filters.c chapro.h
afc_process.o: afc_process.c chapro.h
agc_prepare.o: agc_prepare.c chapro.h
agc_process.o: agc_process.c chapro.h
cfirfb_prepare.o: cfirfb_prepare.c chapro.h
cfirfb_process.o: cfirfb_process.c chapro.h
cha_core.o: cha_core.c chapro.h
cha_scale.o: cha_scale.c chapro.h
chapro.o: chapro.c
ciirfb_design.o: ciirfb_design.c chapro.h
ciirfb_prepare.o: ciirfb_prepare.c chapro.h
ciirfb_process.o: ciirfb_process.c chapro.h
db.o: db.c chapro.h
dciirfb_prepare.o: dciirfb_prepare.c chapro.h
dciirfb_process.o: dciirfb_process.c chapro.h
fft.o: fft.c chapro.h
firfb_prepare.o: firfb_prepare.c chapro.h
firfb_process.o: firfb_process.c chapro.h
gha_demo.o: gha_demo.c chapro.h
icmp_prepare.o: icmp_prepare.c chapro.h
icmp_process.o: icmp_process.c chapro.h
iirfb_design.o: iirfb_design.c chapro.h
iirfb_prepare.o: iirfb_prepare.c chapro.h
iirfb_process.o: iirfb_process.c chapro.h
rfft.o: rfft.c chapro.h
tst_nad.o: tst_nad.c chapro.h
tst_sha.o: tst_sha.c chapro.h
tst_nfc.o: tst_nfc.c chapro.h