forked from rampa069/PhnRec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile_phnrec.lin
59 lines (43 loc) · 1.59 KB
/
makefile_phnrec.lin
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
###############################################################################
BLASLIB = libmkl_p4.so libguide.so # if the files are in curr. dir. "export LD_LIBRARY_PATH=."
#BLASLIB = -l cblas -l atlas
SOUNDLIB = -l pthread # pthread is used in the LWFSource class
###############################################################################
# compiler options
CFLAGS = -g -I . -DUSE_BLAS -D NN_FAST_EXP -D PHNREC_ONLY -O2
CXXFLAGS = $(CFLAGS)
###############################################################################
# linker options
LDFLAGS =
LDLIBS = $(SOUNDLIB) $(BLASLIB)
###############################################################################
# compiler binary
# CROSS_COMPILE ?= x86_64-linux-
CC = $(CROSS_COMPILE)g++
CXX = $(CROSS_COMPILE)g++
O_FILES = melbanks.o \
dspc.o \
traps.o \
nn.o \
configz.o \
alaw.o \
lwfsource.o \
srec.o \
filename.o \
norm.o \
decoder.o \
phndec.o \
sxmlparser.o \
getopt.o \
phnrec.o
###############################################################################
# default rule
all : phnrec.exe
###############################################################################
phnrec.exe : $(O_FILES)
$(CC) -o phnrec $(CXXFLAGS) $(O_FILES) $(SOUNDLIB) $(BLASLIB)
###############################################################################
clean :
rm -f *.o
rm -f phnrec.exe
###############################################################################