47 |
NAME = libsip |
NAME = libsip |
48 |
|
|
49 |
SUBDIRS = algo \ |
SUBDIRS = algo \ |
50 |
type |
type \ |
51 |
|
filter |
52 |
|
# ./ |
53 |
|
|
54 |
# sources, directory by directory. |
# sources, directory by directory. |
55 |
|
|
68 |
# compiled native code .o files (without path!) |
# compiled native code .o files (without path!) |
69 |
ALGO_O = $(TYPE_CC:.cc=.o) |
ALGO_O = $(TYPE_CC:.cc=.o) |
70 |
# compiled native code .o files (with path!) |
# compiled native code .o files (with path!) |
71 |
ALGO_O_LIB = $(ALGO_O: = $(ALGO_DIR)/) |
ALGO_O_LIB = $(ALGO_DIR)/fft.o\ |
72 |
|
$(ALGO_DIR)/mfcc.o\ |
73 |
|
$(ALGO_DIR)/lpc.o |
74 |
|
|
75 |
|
|
76 |
# type/ |
# type/ |
82 |
# name of the compiled bytecode .a lib (with path!) |
# name of the compiled bytecode .a lib (with path!) |
83 |
TYPE_A_LIB = $(TYPE_DIR)/lib$(TYPE_DIR).a |
TYPE_A_LIB = $(TYPE_DIR)/lib$(TYPE_DIR).a |
84 |
# .cc sources (without paths!) |
# .cc sources (without paths!) |
85 |
TYPE_CC = contlogsignal.cpp\ |
TYPE_CC = contlogsignal.cc\ |
86 |
contsignal.cpp\ |
contsignal.cc\ |
87 |
disclogsignal.cpp\ |
disclogsignal.cc\ |
88 |
discsignal.cpp |
discsignal.cc |
89 |
# compiled native code .o files (without path!) |
# compiled native code .o files (without path!) |
90 |
TYPE_O = $(TYPE_CC:.cc=.o) |
TYPE_O = $(TYPE_CC:.cc=.o) |
91 |
# compiled native code .o files (with path!) |
# compiled native code .o files (with path!) |
92 |
TYPE_O_LIB = $(TYPE_O: = $(TYPE_DIR)/) |
TYPE_O_LIB = $(TYPE_DIR)/contlogsignal.o\ |
93 |
|
$(TYPE_DIR)/contsignal.o\ |
94 |
|
$(TYPE_DIR)/disclogsignal.o\ |
95 |
|
$(TYPE_DIR)/discsignal.o |
96 |
|
|
97 |
|
|
98 |
|
|
99 |
|
# filter/ |
100 |
|
|
101 |
|
#subdirectory name |
102 |
|
FILTER_DIR = filter |
103 |
|
# name of the compiled bytecode .a lib (without path!) |
104 |
|
FILTER_A = lib$(FILTER_DIR).a |
105 |
|
# name of the compiled bytecode .a lib (with path!) |
106 |
|
FILTER_A_LIB = $(FILTER_DIR)/lib$(FILTER_DIR).a |
107 |
|
# .cc sources (without paths!) |
108 |
|
FILTER_CC = highpass.cc\ |
109 |
|
lowpass.cc\ |
110 |
|
tchebychev.cc |
111 |
|
|
112 |
|
# compiled native code .o files (without path!) |
113 |
|
FILTER_O = $(FILTER_CC:.cc=.o) |
114 |
|
# compiled native code .o files (with path!) |
115 |
|
FILTER_O_LIB = $(FILTER_DIR)/highpass.o\ |
116 |
|
$(FILTER_DIR)/lowpass.o\ |
117 |
|
$(FILTER_DIR)/tchebychev.o |
118 |
|
|
119 |
# (* Libraries compilation *) |
# (* Libraries compilation *) |
120 |
|
|
121 |
# all .a files required for the libsip.a bytecode lib. |
# all .a files required for the libsip.a bytecode lib. |
122 |
ALL_A_LIB = $(ALGO_A_LIB) \ |
ALL_A_LIB = $(ALGO_A_LIB) \ |
123 |
$(TYPE_A_LIB) |
$(TYPE_A_LIB)\ |
124 |
|
$(FILTER_A_LIB) |
125 |
|
|
126 |
# all .cmx files required for the libnn.cmxa native code lib. |
# all .cmx files required for the libnn.cmxa native code lib. |
127 |
ALL_O_LIB = $(TYPE_O)\ |
ALL_O_LIB = $(TYPE_O_LIB)\ |
128 |
$(ALGO_O) |
$(ALGO_O_LIB)\ |
129 |
|
$(FILTER_O_LIB) |
130 |
|
|
131 |
|
|
132 |
# (* /Sources *) |
# (* /Sources *) |
150 |
DVIPS_HERE = dvips |
DVIPS_HERE = dvips |
151 |
TEXI2HTML_HERE = texi2html |
TEXI2HTML_HERE = texi2html |
152 |
|
|
153 |
INCLUDES = -I ../algo -I ../type |
INCLUDES = -I ../algo -I ../type -I ../filter -I ../ -I./ |
154 |
|
|
155 |
# General compilation flags. |
# General compilation flags. |
156 |
############################ |
############################ |