X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/8b40c60072c0549d18afb1e19fa28ee18036957c..29304fc079678aea4bd99f814c75a1345bc2df4e:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 9bef1c9..2597f8a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,13 +39,17 @@ noinst_DATA = $(MOFILES) lib_LTLIBRARIES = libcdecl.la libcdecl_la_LDFLAGS = -export-symbols-regex '^cdecl_[[:lower:]]' \ - -no-undefined + -no-undefined -version-info 1:0:0 libcdecl_la_SOURCES = src/scan.c src/parse.c src/parse-decl.c src/output.c \ - src/explain.c src/declare.c src/i18n.c src/error.c \ - src/normalize.c src/cdecl-internal.h src/errtab.h + src/explain.c src/declare.c src/error.c src/normalize.c \ + src/cdecl-internal.h libcdecl_la_LIBADD = libgnu.la $(LTLIBINTL) $(LTLIBTHREAD) $(libcdecl_la_OBJECTS): $(gnulib_headers) +if USE_NLS +libcdecl_la_SOURCES += src/i18n.c +endif + bin_PROGRAMS = cdecl99 cdecl99_SOURCES = src/commands.c src/cdecl99.h cdecl99_LDADD = $(libmain_a_OBJECTS) $(libexec_a_OBJECTS) libcdecl.la \ @@ -85,7 +89,6 @@ $(test_normalize_OBJECTS): $(gnulib_headers) src/parse.lo: src/scan.h src/scan.lo: src/parse.h src/parse-decl.lo: src/scan.h src/parse.h src/typemap.h -src/error.lo: src/errtab.h src/output.lo: src/specstr.h test/declgen.lo: test/typegen.h @@ -180,7 +183,7 @@ $(OPTFILES:.opt=.h): $(DX_BASEDIR)/scripts/gen-options.awk MAINTAINERCLEANFILES += $(OPTFILES:.opt=.h) EXTRA_DIST += $(DX_BASEDIR)/scripts/gen-options.awk $(OPTFILES) -STRFILES = src/commands.str src/errtab.str +STRFILES = src/commands.str .str.h: $(AM_V_GEN) $(AWK) -f $(DX_BASEDIR)/scripts/gen-strtab.awk $< >$@.tmp $(AM_V_at) mv -f $@.tmp $@