Repository navigation
Expand file tree
/
Copy pathmakefile.mac
More file actions
126 lines (102 loc) · 2.75 KB
/
Copy pathmakefile.mac
File metadata and controls
126 lines (102 loc) · 2.75 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
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
# makefile for SIGPRO on Mac
# remove -DZLIB & -lz to compile without zlib
#CFLAGS=-Wall -I$(INCDIR) -DZLIB
#LIBS=-lm -lz
CFLAGS=-Wall -I$(INCDIR)
LIBS=-lm
CC=gcc -arch i386
SIGPRO_O= fft.o rcfft.o crfft.o cdb.o linspace.o rand.o randflat.o \
fftfilt.o freqshape.o scalar.o vector.o interp.o convert.o window.o \
matvar.o filter.o anafilt.o wavrw.o fmins.o version.o tictoc.o
LIBDIR=/usr/local/lib
INCDIR=/usr/local/include
BINDIR=/usr/local/bin
PGMS= rdmat tst_fft tst_shp tst_src tst_mat tst_wav tst_afd tst_xfr tst_min \
tst_cpx tst_tb
test : $(PGMS)
./tst_shp
./tst_src
./tst_fft > tst_fft.txt
diff -s tst_fft.mac tst_fft.txt
./tst_mat
./tst_wav
./tst_afd
./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_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 rus libsigpro.a $(SIGPRO_O)
$(LIBDIR)/libsigpro.a : libsigpro.a
mkdir -p $(LIBDIR)
cp -f libsigpro.a $(LIBDIR)
$(INCDIR)/sigpro.h : sigpro.h
mkdir -p $(INCDIR)
cp -f sigpro.h $(INCDIR)
$(BINDIR)/rdmat : rdmat
mkdir -p $(BINDIR)
cp -f rdmat $(BINDIR)
install: $(BINDIR)/rdmat $(LIBDIR)/libsigpro.a $(INCDIR)/sigpro.h
zipsrc:
zip sigprosc *.mgw *.lnx *.mac
zip sigprosc *.h *.c *.plt *.std *.m *.def
zip sigprosc VS9/*.sln VS9/*.vcpro test/*.mat
zipdll:
zip -j sigprdll VS9/Release/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) *.txt *.log *.mat *~ *.wav
# dependencies
anafilt.o:sigpro.h
cdb.o:sigpro.h
convert.obj: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
scalar.o:sigpro.h
sptest.o:sigpro.h
tst_afd.o:sigpro.h
tst_cpx.o:sigpro.h
tst_wav.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_xfr.o:sigpro.h
vector.o:sigpro.h
version.o:sigpro.h version.h
window.o:sigpro.h