File: ucm2ltc.in

package info (click to toggle)
libtranscript 0.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,272 kB
  • sloc: ansic: 223,135; cpp: 4,289; sh: 1,095; xml: 172; makefile: 70; lex: 44
file content (52 lines) | stat: -rw-r--r-- 1,891 bytes parent folder | download | duplicates (2)
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
# Copyright (C) 2011,2013 G.P. Halkes
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
.POSIX:

# C-compiler flags
CFLAGS=-O2

# C++-compiler flags
CXXFLAGS=-O2

# Config flags
# - If strdup is not provided by the library, remove -DHAS_STRDUP.
# - If your platform does not support the nl_langinfo function, remove
#    -DHAS_NL_LANGINFO
CONFIGFLAGS=-DHAS_STRDUP -DHAS_NL_LANGINFO

all: src.util/ucm2ltc/ucm2ltc

.PHONY: all clean dist-clean
.SUFFIXES: .c .cc .o
.SECONDARY: # Tell GNU make not to delete intermediate files

SILENTCC=@echo '[CC]' $< ;
SILENTCXX=@echo '[CXX]' $< ;
SILENTLD=@echo '[LD]' $@ ;

OBJECTS_UCM2LTC=src.util/ucm2ltc/ucm2ltc.o src.util/ucm2ltc/ucmparser.o src.util/ucm2ltc/variant.o src.util/ucm2ltc/ucm_analyse.o src.util/ucm2ltc/minimize_state_machine.o src.util/ucm2ltc/ucm_write_simple.o src.util/ucm2ltc/ucm.o src.util/ucm2ltc/ucmlexer.o src.util/ucm2ltc/ucm_write_tables.o

clean:
	rm -rf src.util/ucm2ltc/*.o src.util/ucm2ltc/ucm2ltc

dist-clean: clean

.c.o:
	$(SILENTCC) $(CC) $(CFLAGS) $(CONFIGFLAGS) -Isrc -c -o $@ $<

.cc.o:
	$(SILENTCXX) $(CXX) $(CXXFLAGS) $(CONFIGFLAGS) -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -Isrc -c -o $@ $<

src.util/ucm2ltc/ucm2ltc: $(OBJECTS_UCM2LTC) src/libtranscript.la
	$(SILENTLD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJECTS_UCM2LTC) $(LDLIBS) -Lsrc/.libs -ltranscript