-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile.mgw
130 lines (108 loc) · 2.95 KB
/
makefile.mgw
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# makefile for SIGPRO using MinGW
# Note: remove -DZLIB & -lz to compile without zlib
CFLAGS=-Wall -I$(INCDIR) -Wno-unused-local-typedefs -DZLIB
LIBS=-lm -lz
CC=gcc
AR=ar
SIGPRO_1= fft.o rcfft.o crfft.o cdb.o linspace.o rand.o randflat.o
SIGPRO_2= fftfilt.o freqshape.o scalar.o vector.o interp.o convert.o window.o
SIGPRO_3= matvar.o filter.o anafilt.o wavrw.o fmins.o fminsearch.o version.o
SIGPRO_4= tictoc.o
SIGPRO_O= $(SIGPRO_1) $(SIGPRO_2) $(SIGPRO_3) $(SIGPRO_4)
LIBDIR=c:/usr/lib
INCDIR=c:/usr/include
BINDIR=c:/usr/bin
PGMS= rdmat tst_fft tst_shp tst_src tst_mat tst_wav tst_afd tst_xfr tst_min \
tst_cpx tst_tb tst_bbf
test : $(PGMS)
./tst_shp
./tst_src
./tst_fft
diff -s tst_fft.mgw tst_fft.txt
./tst_mat
./tst_wav
./tst_afd
./tst_bbf
./tst_xfr
./tst_min
./tst_cpx
./tst_tb
tst_fft : tst_fft.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_shp : tst_shp.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_src : tst_src.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_mat : tst_mat.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_wav : tst_wav.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_tb : tst_tb.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_afd : tst_afd.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_bbf : tst_bbf.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_xfr : tst_xfr.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_min : tst_min.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
tst_cpx : tst_cpx.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
rdmat : rdmat.o libsigpro.a
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
libsigpro.a: $(SIGPRO_O)
$(AR) rs libsigpro.a $(SIGPRO_1)
$(AR) rs libsigpro.a $(SIGPRO_2)
$(AR) rs libsigpro.a $(SIGPRO_3)
$(AR) rs libsigpro.a $(SIGPRO_4)
install: libsigpro.a rdmat
cp -f libsigpro.a $(LIBDIR)
cp -f sigpro.h $(INCDIR)
cp -f rdmat.exe $(BINDIR)
zipsrc:
zip sigprosc *.mgw *.lnx *.mac
zip sigprosc *.h *.c *.plt *.std *.m *.def
zip sigprosc VS16/*.sln VS16/*.vcxproj VS16/*.filters test/*
zip sigprosc configure configure.bat
zipdll:
zip -j sigprdll c:/usr/lib/sigpro.dll
zip -j sigprdll sigpro.h
dist: zipsrc zipdll
cp -f sigpr*.zip ../dist
rm -f *.zip
clean:
rm -f *.o *.obj *.bak *.a *.exe $(PGMS)
rm -f *.txt *.log *.mat *~ *.wav *.so test/*.mat
# dependencies
anafilt.o:sigpro.h
cdb.o:sigpro.h
convert.o:sigpro.h
crfft.o:sigpro.h
fft.o:sigpro.h
fftfilt.o:sigpro.h
filter.o:sigpro.h
freqshape.o:sigpro.h
interp.o:sigpro.h
linspace.o:sigpro.h
matvar.o:sigpro.h
rand.o:sigpro.h
randflat.o:sigpro.h
rcfft.o:sigpro.h
rdmat.o:sigpro.h
scalar.o:sigpro.h
sptest.o:sigpro.h
tst_afd.o:sigpro.h
tst_bbf.o:sigpro.h
tst_fft.o:sigpro.h
tst_mat.o:sigpro.h
tst_min.o:sigpro.h
tst_shp.o:sigpro.h
tst_src.o:sigpro.h
tst_wav.o:sigpro.h
tst_xfr.o:sigpro.h
tst_cpx.o : sigpro.h
tst_tb.o : sigpro.h
vector.o:sigpro.h
version.o:sigpro.h version.h
window.o:sigpro.h