makefile
2.47 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
# makefile for SCLITE
#### Start of system configuration section. ####
srcdir = .
CC = g++
INSTALL = /usr/bin/install
CPPFLAGS =
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MATH_H=1 -DHAVE_TIME_H=1 -DHAVE_ASSERT_H=1 -DHAVE_FLOAT_H=1 -DHAVE_LIMITS_H=1
CFLAGS = -g -Os
LDFLAGS =
LIBS = -lm
# Some System V machines do not come with libPW.
# If this is true for you, use the GNU alloca.o here.
prefix = /local_disk/orion/ontrac/yannick/kaldi_20190717/kaldi/tools/sctk
exec_prefix = ${prefix}
edit_program_name = sed 's,x,x,'
bindir = $(exec_prefix)/bin
mandir =$(prefix)/man
man1dir =$(mandir)/man1
man5dir = $(mandir)/man5
infodir = $(prefix)/info
DEFAULT_EDITOR_PROGRAM = ed
NULL_DEVICE = /dev/null
PR_PROGRAM = /bin/pr
#### End of system configuration section. ####
SHELL = /bin/sh
######################################################################
# The source files for all of the programs.
src_c = $(wildcard *.cpp *.c lzma/*.c)
######################################################################
# The Object files for all of the library code.
src_o := $(src_c:%.cc=%.o)
src_o := $(src_o:%.cpp=%.o)
src_o := $(src_o:%.c=%.o)
PROGRAMS = asclite
######################################################################
all: makefile $(PROGRAMS)
COMPILE = $(CC) -c $(OFLAGS) $(DEFS) -I. $(CFLAGS)
.cpp.o:
$(COMPILE) $<
asclite: $(src_o)
$(CXX) -o $@ $(CFLAGS) $(LDFLAGS) $(src_o) $(LIBS)
clean:
rm -f *.o lzma/*.o $(PROGRAMS) core.*
mostlyclean: clean
distclean: clean
rm -rf *~ config.status config.log config.cache config.h makefile
realclean: distclean
rm -f TAGS *.info*
install: all
for p in $(PROGRAMS); do \
$(INSTALL) $$p $(bindir)/$$p; \
done
check:
config.sh: config.in
autoconf config.in | sed 's/Makefile/makefile/g' > config.sh
# autoheader might not change config.hin.
config.hin: stamp-h.in
stamp-h.in: config.in
cd $(srcdir) && autoheader
date > $(srcdir)/stamp-h.in
config.status: config.sh
./config.status --recheck
# config.status might not change config.h, but it changes stamp-h.
makefile: makefile.in config.status
./config.status
# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT: