PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/native/external/espeak/platforms/dos/MAKEFILE.DJ

http://eyes-free.googlecode.com/
Unknown | 61 lines | 47 code | 14 blank | 0 comment | 0 complexity | c56d8ef1266377ae0a2b081d741c6969 MD5 | raw file
 1BINDIR=/usr/bin
 2INCDIR=/usr/include/espeak
 3LIBDIR=/usr/lib
 4DATADIR=espeak-data
 5
 6RELEASE = 1.28
 7BIN_NAME = speak
 8
 9INSTALL = /usr/bin/install
10LN_SF = /bin/ln -sf
11MKDIR = mkdir -p
12
13speak_SOURCES = speak.cpp compiledict.cpp dictionary.cpp intonation.cpp \
14	readclause.cpp setlengths.cpp numbers.cpp synth_mbrola.cpp \
15	synthdata.cpp synthesize.cpp translate.cpp tr_english.cpp \
16	tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp
17
18SRCS1=$(speak_SOURCES)
19OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
20LIBS1=
21
22
23CXXFLAGS=-O2
24
25
26all: $(BIN_NAME) 
27
28.cpp.o:
29	$(CXX) $(CXXFLAGS) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
30
31$(BIN_NAME): $(OBJS1)
32	$(CXX) -o $@ $(OBJS1) $(LIBS1)
33
34clean:
35	rm -f *.o *.a *~
36
37distclean: clean
38	rm -f $(BIN_NAME)
39	rm -f $(BIN2_NAME)
40	rm -f $(LIB_NAME)*
41
42install: all
43	# Create directories
44	rm -rf $(DESTDIR)$(DATADIR)
45	$(MKDIR) $(DESTDIR)$(BINDIR)
46	$(MKDIR) $(DESTDIR)$(LIBDIR)
47	$(MKDIR) $(DESTDIR)$(INCDIR)
48	$(MKDIR) $(DESTDIR)$(DATADIR)
49	# Install espeak executable
50	$(INSTALL) -m 755 $(BIN2_NAME) $(DESTDIR)$(BINDIR)
51	# Install shared library
52	$(INSTALL) -m 755 $(LIB_NAME).$(LIBTAG) $(DESTDIR)$(LIBDIR)
53	# Install static library
54	$(INSTALL) -m 755 $(STATIC_LIB_NAME) $(DESTDIR)$(LIBDIR)
55	$(LN_SF) $(LIB_NAME).$(LIBTAG) $(DESTDIR)$(LIBDIR)/$(LIB_NAME).$(LIB_VERSION)
56	$(LN_SF) $(LIB_NAME).$(LIB_VERSION) $(DESTDIR)$(LIBDIR)/$(LIB_NAME)
57	# Install development headers
58	$(INSTALL) -pm 644 speak_lib.h $(DESTDIR)$(INCDIR)
59	# Install data files
60	cp -prf ../espeak-data/* $(DESTDIR)$(DATADIR)
61