-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
134 lines (109 loc) · 3.17 KB
/
Makefile
File metadata and controls
134 lines (109 loc) · 3.17 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
127
128
129
130
131
132
133
134
#********************************************************************
# ITU-T Draft Recommendation P.563
# Version 1.0 - 23 March 2004
#
# NOTICE
#
# The Single Ended Assessment Model P.563 algorithm and the copyright therein
# is the joint property of Psytechnics Limited, OPTICOM GmbH and SwissQual AG
# and is protected by UK, US and other patents, either applied for or
# registered.
# Permission is granted to use this source code solely for the purpose of
# evaluation of ITU-T recommendation P.563.
# Any other use of this software requires a licence, which may be obtained
# from:
#
# OPTICOM GmbH
# Am Weichselgarten 7, D- 91058 Erlangen, Germany
# Phone: +49 9131 691 160 Fax: +49 9131 691 325
# E-mail: info@opticom.de www.3sqm.com
#
# Psytechnics Limited
# Fraser House, 23 Museum Street, Ipswich, IP1 1HN, UK
# Phone: +44 1 473 261 800 Fax: +44 1 473 261 880
# E-mail: info@psytechnics.com www.psytechnics.com
#
# SwissQual AG
# Gewerbestrasse 2 CH-4528 Zuchwil, Switzerland
# Phone: +41 32 685 08 30 Fax: +41 32 685 08 31
# E-mail: sales@swissqual.com www.swissqual.com
#
# Psytechnics, SwissQual or Opticom can provide licences and further
# information.
#
# Authors:
# Ludovic Malfait ludovic.malfait@psytechnics.com
# Roland Bitto rb@opticom.de
# Pero Juric pero.juric@swissqual.com
#
#********************************************************************/
########################################################################
#for the executable creation
#DEBUG_FLAG= -g
CC=gcc
LINK=gcc
DEBUG= -Wall
RELEASE= -O3 -s
DEFINES= -D_LINUX_ -ffloat-store -funroll-loops
INCLUDE=-I . -Iinclude
VPATH = .:source
OBJDIR=./obj
##################################################################
# Target specifications
##################################################################
ifeq ($(DEBUG_FLAG), -g)
CFLAGS= $(DEBUG) $(DEFINES) $(INCLUDE) -c
OUTDIR=Debug
else
CFLAGS= $(RELEASE) $(DEFINES) $(INCLUDE) -c
OUTDIR=./bin
endif
OBJS_P563=\
$(OBJDIR)/back_noise.o \
$(OBJDIR)/beeprob.o \
$(OBJDIR)/dsp.o \
$(OBJDIR)/Enhance.o \
$(OBJDIR)/EvalQual.o \
$(OBJDIR)/hosm.o \
$(OBJDIR)/inter_detect.o \
$(OBJDIR)/LpcAnalysis.o \
$(OBJDIR)/lpc.o \
$(OBJDIR)/mapping.o \
$(OBJDIR)/module1.o \
$(OBJDIR)/module2.o \
$(OBJDIR)/module3.o \
$(OBJDIR)/tools1.o \
$(OBJDIR)/p563.o \
$(OBJDIR)/pitch.o \
$(OBJDIR)/Quant.o \
$(OBJDIR)/SignalsPercept.o \
$(OBJDIR)/SpeechLib.o \
$(OBJDIR)/Statistics.o \
$(OBJDIR)/tools.o \
$(OBJDIR)/vector_lib.o \
#################################################################
# compile files
#################################################################
$(OBJDIR)/%.o : %.c
$(CC) $(CFLAGS) $< -o $@
##################################################################
# targets
##################################################################
binaries=\
$(OUTDIR)/p563
.PHONY: prepare clean
all: $(binaries)
all: $(binaries)
clean:
rm -f $(OBJDIR)/*.o
rm -f $(OUTDIR)/P563
prepare:
mkdir -p $(OUTDIR)
mkdir -p $(OBJDIR)
install:
cp $(OUTDIR)/p563 /usr/local/bin
uninstall:
rm -f /usr/local/bin/p563
$(OUTDIR)/p563:$(OUTDIR) $(OBJS_P563)
@echo Making p563
$(LINK) $(OBJS_P563) -lm -o $(OUTDIR)/p563