1 # Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
3 # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # not a GNU package. You can remove this line, if
14 # you have all needed files, that a GNU package needs
17 # Makefile snippet included by projects using libt2n-codegen
20 # gnu make (functions for transforming text)
27 top_srcdir = @top_srcdir@
30 exec_prefix = @exec_prefix@
34 libexecdir = @libexecdir@
36 sysconfdir = @sysconfdir@
37 sharedstatedir = @sharedstatedir@
38 localstatedir = @localstatedir@
42 includedir = @includedir@
43 oldincludedir = /usr/include
47 pkgdatadir = $(datadir)/@PACKAGE@
48 pkglibdir = $(libdir)/@PACKAGE@
49 pkgincludedir = $(includedir)/@PACKAGE@
56 AUTOHEADER = @AUTOHEADER@
59 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
60 INSTALL_DATA = @INSTALL_DATA@
61 INSTALL_SCRIPT = @INSTALL_SCRIPT@
62 transform = @program_transform_name@
70 host_alias = @host_alias@
80 LIBT2N_CLIENT_PCTEMPLATE = @LIBT2N_CLIENT_PCTEMPLATE@
81 LIBT2N_CODEGEN = @LIBT2N_CODEGEN@
89 PKG_CONFIG = @PKG_CONFIG@
94 AUTOMAKE_OPTIONS = foreign
96 INCLUDES = @LIBT2N_CFLAGS@
99 # list your command groups
100 CMDGROUPS = default other
102 # for each command group list the files to parse for LIBT2N_EXPORT
103 default_GROUP = default.cpp
104 # example of a command group using multiple cpp files
105 other_GROUP = other-1.cpp other-2.cpp
107 include_HEADERS = foo.hxx $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx)
109 # unfortunately we can't set those from variables
110 # because they are parsed by automake
112 # we would like to use nodist_ here but our automake is to old
113 # nodist_libdefault_la_SOURCES = default_client.cpp
114 # nodist_libother_la_SOURCES = other_client.cpp
116 # using objects as workaround for missing nodist_ didn't work
117 # libdefault_la_OBJECTS += default_client.lo
118 # libother_la_OBJECTS += other_client.lo
119 # Note: the library name must match the group name
121 libdefault_la_SOURCES = default_client.cpp
122 libother_la_SOURCES = other_client.cpp
123 lib_LTLIBRARIES = libdefault.la libother.la
125 # build an example server and client
126 client_SOURCES = client.cpp
127 client_LDADD = $(LDADD) libdefault.la libother.la
129 noinst_PROGRAMS = client
131 bin_PROGRAMS = libt2n-example2-server
133 # we would like to use nodist_ here but our automake is to old
134 # nodist_server_SOURCES = other_server.cpp default_server.cpp
135 # using LDADD as workaround didn't work
136 # server_LDADD = $(LDADD) other_server.$(OBJEXT) default_server.$(OBJEXT)
138 libt2n_example2_server_SOURCES = \
139 server.cpp $(other_GROUP) $(default_GROUP) \
140 other_server.cpp default_server.cpp
147 EXTRA_DIST = $(TESTS) codegen.make
149 LIBT2N_CODEGEN_BUILT = $(foreach i, $(CMDGROUPS), $(foreach j, _common.hxx _common.cpp _client.hxx _client.cpp _server.hxx _server.cpp, $(i)$(j)) )
151 # using BUILT_SOURCES is a bit problematic (see also automake manual)
152 BUILT_SOURCES = $(LIBT2N_CODEGEN_BUILT)
154 LIBT2N_STAMPS = $(CMDGROUPS:=.libt2nstamp)
156 # Install the pkg-config files: (todo: perhaps use +=)
157 pkgconfigdir = $(libdir)/pkgconfig
158 pkgconfig_DATA = $(CMDGROUPS:=.pc)
160 CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA)
161 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
162 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
164 LTLIBRARIES = $(lib_LTLIBRARIES)
167 DEFS = @DEFS@ -I. -I$(srcdir)
168 CPPFLAGS = @CPPFLAGS@
171 libdefault_la_LDFLAGS =
172 libdefault_la_LIBADD =
173 libdefault_la_OBJECTS = default_client.lo
174 libother_la_LDFLAGS =
176 libother_la_OBJECTS = other_client.lo
177 bin_PROGRAMS = libt2n-example2-server$(EXEEXT)
178 noinst_PROGRAMS = client$(EXEEXT)
179 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
181 libt2n_example2_server_OBJECTS = server.$(OBJEXT) other-1.$(OBJEXT) \
182 other-2.$(OBJEXT) default.$(OBJEXT) other_server.$(OBJEXT) \
183 default_server.$(OBJEXT)
184 libt2n_example2_server_LDADD = $(LDADD)
185 libt2n_example2_server_DEPENDENCIES =
186 libt2n_example2_server_LDFLAGS =
187 client_OBJECTS = client.$(OBJEXT)
188 client_DEPENDENCIES = libdefault.la libother.la
190 CXXFLAGS = @CXXFLAGS@
191 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
192 LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
194 CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
196 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
197 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
199 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
200 DATA = $(pkgconfig_DATA)
202 HEADERS = $(include_HEADERS)
204 DIST_COMMON = README COPYING Makefile.am Makefile.in aclocal.m4 \
205 config.guess config.sub configure configure.in install-sh ltmain.sh \
206 missing mkinstalldirs
209 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
213 DEP_FILES = .deps/_client.P .deps/_common.P .deps/client.P \
214 .deps/default.P .deps/default_client.P .deps/default_server.P \
215 .deps/other-1.P .deps/other-2.P .deps/other_client.P \
216 .deps/other_server.P .deps/server.P
217 SOURCES = $(libdefault_la_SOURCES) $(libother_la_SOURCES) $(libt2n_example2_server_SOURCES) $(client_SOURCES)
218 OBJECTS = $(libdefault_la_OBJECTS) $(libother_la_OBJECTS) $(libt2n_example2_server_OBJECTS) $(client_OBJECTS)
222 .SUFFIXES: .S .c .cpp .lo .o .obj .s
223 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(srcdir)/codegen.make
224 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
226 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
228 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
230 $(ACLOCAL_M4): configure.in
231 cd $(srcdir) && $(ACLOCAL)
233 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
234 $(SHELL) ./config.status --recheck
235 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
236 cd $(srcdir) && $(AUTOCONF)
238 mostlyclean-libLTLIBRARIES:
240 clean-libLTLIBRARIES:
241 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
243 distclean-libLTLIBRARIES:
245 maintainer-clean-libLTLIBRARIES:
247 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
249 $(mkinstalldirs) $(DESTDIR)$(libdir)
250 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
251 if test -f $$p; then \
252 echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
253 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
257 uninstall-libLTLIBRARIES:
259 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
260 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
263 # FIXME: We should only use cygpath when building on Windows,
264 # and only if it is available.
266 $(COMPILE) -c `cygpath -w $<`
275 -rm -f *.o core *.core
283 maintainer-clean-compile:
286 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
289 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
299 maintainer-clean-libtool:
301 libdefault.la: $(libdefault_la_OBJECTS) $(libdefault_la_DEPENDENCIES)
302 $(CXXLINK) -rpath $(libdir) $(libdefault_la_LDFLAGS) $(libdefault_la_OBJECTS) $(libdefault_la_LIBADD) $(LIBS)
304 libother.la: $(libother_la_OBJECTS) $(libother_la_DEPENDENCIES)
305 $(CXXLINK) -rpath $(libdir) $(libother_la_LDFLAGS) $(libother_la_OBJECTS) $(libother_la_LIBADD) $(LIBS)
307 mostlyclean-binPROGRAMS:
310 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
312 distclean-binPROGRAMS:
314 maintainer-clean-binPROGRAMS:
316 install-binPROGRAMS: $(bin_PROGRAMS)
318 $(mkinstalldirs) $(DESTDIR)$(bindir)
319 @list='$(bin_PROGRAMS)'; for p in $$list; do \
320 if test -f $$p; then \
321 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
322 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
326 uninstall-binPROGRAMS:
328 list='$(bin_PROGRAMS)'; for p in $$list; do \
329 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
332 mostlyclean-noinstPROGRAMS:
334 clean-noinstPROGRAMS:
335 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
337 distclean-noinstPROGRAMS:
339 maintainer-clean-noinstPROGRAMS:
341 libt2n-example2-server$(EXEEXT): $(libt2n_example2_server_OBJECTS) $(libt2n_example2_server_DEPENDENCIES)
342 @rm -f libt2n-example2-server$(EXEEXT)
343 $(CXXLINK) $(libt2n_example2_server_LDFLAGS) $(libt2n_example2_server_OBJECTS) $(libt2n_example2_server_LDADD) $(LIBS)
345 client$(EXEEXT): $(client_OBJECTS) $(client_DEPENDENCIES)
346 @rm -f client$(EXEEXT)
347 $(CXXLINK) $(client_LDFLAGS) $(client_OBJECTS) $(client_LDADD) $(LIBS)
351 $(CXXCOMPILE) -c `cygpath -w $<`
353 $(LTCXXCOMPILE) -c $<
355 install-pkgconfigDATA: $(pkgconfig_DATA)
357 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
358 @list='$(pkgconfig_DATA)'; for p in $$list; do \
359 if test -f $(srcdir)/$$p; then \
360 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
361 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \
362 else if test -f $$p; then \
363 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
364 $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \
368 uninstall-pkgconfigDATA:
370 list='$(pkgconfig_DATA)'; for p in $$list; do \
371 rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
374 install-includeHEADERS: $(include_HEADERS)
376 $(mkinstalldirs) $(DESTDIR)$(includedir)
377 @list='$(include_HEADERS)'; for p in $$list; do \
378 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
379 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
380 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
383 uninstall-includeHEADERS:
385 list='$(include_HEADERS)'; for p in $$list; do \
386 rm -f $(DESTDIR)$(includedir)/$$p; \
391 ID: $(HEADERS) $(SOURCES) $(LISP)
392 list='$(SOURCES) $(HEADERS)'; \
393 unique=`for i in $$list; do echo $$i; done | \
394 awk ' { files[$$0] = 1; } \
395 END { for (i in files) print i; }'`; \
396 here=`pwd` && cd $(srcdir) \
397 && mkid -f$$here/ID $$unique $(LISP)
399 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
402 list='$(SOURCES) $(HEADERS)'; \
403 unique=`for i in $$list; do echo $$i; done | \
404 awk ' { files[$$0] = 1; } \
405 END { for (i in files) print i; }'`; \
406 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
407 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
416 maintainer-clean-tags:
418 distdir = $(PACKAGE)-$(VERSION)
419 top_distdir = $(distdir)
421 # This target untars the dist file and tries a VPATH configuration. Then
422 # it guarantees that the distribution is self-contained by making another
426 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
427 mkdir $(distdir)/=build
428 mkdir $(distdir)/=inst
429 dc_install_base=`cd $(distdir)/=inst && pwd`; \
430 cd $(distdir)/=build \
431 && ../configure --srcdir=.. --prefix=$$dc_install_base \
432 && $(MAKE) $(AM_MAKEFLAGS) \
433 && $(MAKE) $(AM_MAKEFLAGS) dvi \
434 && $(MAKE) $(AM_MAKEFLAGS) check \
435 && $(MAKE) $(AM_MAKEFLAGS) install \
436 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
437 && $(MAKE) $(AM_MAKEFLAGS) dist
439 @banner="$(distdir).tar.gz is ready for distribution"; \
440 dashes=`echo "$$banner" | sed s/./=/g`; \
445 -chmod -R a+r $(distdir)
446 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
449 -chmod -R a+r $(distdir)
450 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
452 distdir: $(DISTFILES)
455 -chmod 777 $(distdir)
456 here=`cd $(top_builddir) && pwd`; \
457 top_distdir=`cd $(distdir) && pwd`; \
458 distdir=`cd $(distdir) && pwd`; \
460 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
461 @for file in $(DISTFILES); do \
463 if test -d $$d/$$file; then \
464 cp -pr $$d/$$file $(distdir)/$$file; \
466 test -f $(distdir)/$$file \
467 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
468 || cp -p $$d/$$file $(distdir)/$$file || :; \
471 $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
473 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
475 -include $(DEP_FILES)
484 maintainer-clean-depend:
487 @echo '$(COMPILE) -c $<'; \
488 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
489 @-cp .deps/$(*F).pp .deps/$(*F).P; \
490 tr ' ' '\012' < .deps/$(*F).pp \
491 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
496 @echo '$(LTCOMPILE) -c $<'; \
497 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
498 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
499 < .deps/$(*F).pp > .deps/$(*F).P; \
500 tr ' ' '\012' < .deps/$(*F).pp \
501 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
506 @echo '$(CXXCOMPILE) -c $<'; \
507 $(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
508 @-cp .deps/$(*F).pp .deps/$(*F).P; \
509 tr ' ' '\012' < .deps/$(*F).pp \
510 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
515 @echo '$(LTCXXCOMPILE) -c $<'; \
516 $(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
517 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
518 < .deps/$(*F).pp > .deps/$(*F).P; \
519 tr ' ' '\012' < .deps/$(*F).pp \
520 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
523 check-TESTS: $(TESTS)
525 srcdir=$(srcdir); export srcdir; \
526 for tst in $(TESTS); do \
527 if test -f $$tst; then dir=.; \
528 else dir="$(srcdir)"; fi; \
529 if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
530 all=`expr $$all + 1`; \
531 echo "PASS: $$tst"; \
532 elif test $$? -ne 77; then \
533 all=`expr $$all + 1`; \
534 failed=`expr $$failed + 1`; \
535 echo "FAIL: $$tst"; \
538 if test "$$failed" -eq 0; then \
539 banner="All $$all tests passed"; \
541 banner="$$failed of $$all tests failed"; \
543 dashes=`echo "$$banner" | sed s/./=/g`; \
547 test "$$failed" -eq 0
553 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
556 installcheck: installcheck-am
557 install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
558 install-exec: install-exec-am
560 install-data-am: install-pkgconfigDATA install-includeHEADERS
561 install-data: install-data-am
564 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
566 uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
567 uninstall-pkgconfigDATA uninstall-includeHEADERS
568 uninstall: uninstall-am
569 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS)
572 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
574 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
575 $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(includedir)
581 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
584 -rm -f Makefile $(CONFIG_CLEAN_FILES)
585 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
587 maintainer-clean-generic:
588 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
589 mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
590 mostlyclean-libtool mostlyclean-binPROGRAMS \
591 mostlyclean-noinstPROGRAMS mostlyclean-tags \
592 mostlyclean-depend mostlyclean-generic
594 mostlyclean: mostlyclean-am
596 clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
597 clean-binPROGRAMS clean-noinstPROGRAMS clean-tags \
598 clean-depend clean-generic mostlyclean-am
602 distclean-am: distclean-libLTLIBRARIES distclean-compile \
603 distclean-libtool distclean-binPROGRAMS \
604 distclean-noinstPROGRAMS distclean-tags \
605 distclean-depend distclean-generic clean-am
608 distclean: distclean-am
611 maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
612 maintainer-clean-compile maintainer-clean-libtool \
613 maintainer-clean-binPROGRAMS \
614 maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
615 maintainer-clean-depend maintainer-clean-generic \
617 @echo "This command is intended for maintainers to use;"
618 @echo "it deletes files that may require special tools to rebuild."
620 maintainer-clean: maintainer-clean-am
623 .PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
624 clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
625 uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
626 distclean-compile clean-compile maintainer-clean-compile \
627 mostlyclean-libtool distclean-libtool clean-libtool \
628 maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
629 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
630 install-binPROGRAMS mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
631 clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
632 uninstall-pkgconfigDATA install-pkgconfigDATA uninstall-includeHEADERS \
633 install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
634 maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
635 clean-depend maintainer-clean-depend check-TESTS info-am info dvi-am \
636 dvi check check-am installcheck-am installcheck install-exec-am \
637 install-exec install-data-am install-data install-am install \
638 uninstall-am uninstall all-redirect all-am all installdirs \
639 mostlyclean-generic distclean-generic clean-generic \
640 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
643 # not needed but nice to have
644 # IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j)))
646 -include $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P)
648 libt2ngroup_%.P : Makefile.am
649 echo $@ : $($*_GROUP) > libt2ngroup_$*.P
651 %.libt2nstamp : libt2ngroup_%.P
652 # assuming we have some unix like shell (maybe even bash)
653 # echo BUILT_SOURCES: $(BUILT_SOURCES)
654 # temporarily create _common.hxx file (will be overwritten by codegen below)
655 echo '#include "codegen-stubhead.hxx"' > $*_common.hxx;
656 echo '#include "$*.hxx"' >> $*_common.hxx;
657 # todo use tmp file for xml file
658 for i in $($*_GROUP); do \
659 gccxml $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(srcdir)/$${i} -fxml=$${i%*.cpp}.xml; \
660 done && $(LIBT2N_CODEGEN) $* $($*_GROUP:.cpp=.xml) && touch $@
661 $(BUILT_SOURCES) : $(LIBT2N_STAMPS)
663 # .pc files (one pc file for each command group)
664 %.pc : $(LIBT2N_CLIENT_PCTEMPLATE) Makefile
666 -e 's,\@CMDGROUP\@,$*,g' \
667 -e 's,\@prefix\@,$(prefix),g' \
668 -e 's,\@exec_prefix\@,$(exec_prefix),g' \
669 -e 's,\@libdir\@,$(libdir),g' \
670 -e 's,\@includedir\@,$(includedir),g' \
671 -e 's,\@VERSION\@,$(VERSION),g' \
674 # didn't work (same problem as with _LTLIBRARIES [parsing by automake],
675 # this time _OBJECTS was not correct)
676 # server_SOURCES = server.cpp \
677 # $(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) \
678 # $(foreach i, $(CMDGROUPS), $(i)_server.cpp)
680 # we have got an old automake version (1.4-p5) which doesn't support nodist_
681 # => we use this hack using the dist-hook
682 dist-hook: $(LIBT2N_CODEGEN_BUILT)
683 rm -vf $(foreach i, $(LIBT2N_CODEGEN_BUILT), $(distdir)/$(i))
685 # if you use libt2n-codegen you should add this
686 # (i did not find a nice way to let libt2n install this makefile snippet
687 # and let projects using libt2n use the installed version.
688 # the core of the problem is:
689 # the makefile snippet is already needed when automake is run
690 # => no way to let configure locate the snippet)
692 # Tell versions [3.59,3.63) of GNU make to not export all variables.
693 # Otherwise a system limit (for SysV at least) may be exceeded.