added readme for example-codegen
[libt2n] / examples-codegen / example2 / Makefile.in
1 # Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
2
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.
7
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
11 # PARTICULAR PURPOSE.
12
13 # not a GNU package. You can remove this line, if
14 # you have all needed files, that a GNU package needs
15
16
17 # Makefile snippet included by projects using libt2n-codegen
18
19 # Asumptions: 
20 # gnu make (functions for transforming text)
21 # sed is available
22
23
24 SHELL = @SHELL@
25
26 srcdir = @srcdir@
27 top_srcdir = @top_srcdir@
28 VPATH = @srcdir@
29 prefix = @prefix@
30 exec_prefix = @exec_prefix@
31
32 bindir = @bindir@
33 sbindir = @sbindir@
34 libexecdir = @libexecdir@
35 datadir = @datadir@
36 sysconfdir = @sysconfdir@
37 sharedstatedir = @sharedstatedir@
38 localstatedir = @localstatedir@
39 libdir = @libdir@
40 infodir = @infodir@
41 mandir = @mandir@
42 includedir = @includedir@
43 oldincludedir = /usr/include
44
45 DESTDIR =
46
47 pkgdatadir = $(datadir)/@PACKAGE@
48 pkglibdir = $(libdir)/@PACKAGE@
49 pkgincludedir = $(includedir)/@PACKAGE@
50
51 top_builddir = .
52
53 ACLOCAL = @ACLOCAL@
54 AUTOCONF = @AUTOCONF@
55 AUTOMAKE = @AUTOMAKE@
56 AUTOHEADER = @AUTOHEADER@
57
58 INSTALL = @INSTALL@
59 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
60 INSTALL_DATA = @INSTALL_DATA@
61 INSTALL_SCRIPT = @INSTALL_SCRIPT@
62 transform = @program_transform_name@
63
64 NORMAL_INSTALL = :
65 PRE_INSTALL = :
66 POST_INSTALL = :
67 NORMAL_UNINSTALL = :
68 PRE_UNINSTALL = :
69 POST_UNINSTALL = :
70 host_alias = @host_alias@
71 host_triplet = @host@
72 AS = @AS@
73 CC = @CC@
74 CXX = @CXX@
75 DLLTOOL = @DLLTOOL@
76 ECHO = @ECHO@
77 EXEEXT = @EXEEXT@
78 HAVE_LIB = @HAVE_LIB@
79 LIB = @LIB@
80 LIBT2N_CLIENT_PCTEMPLATE = @LIBT2N_CLIENT_PCTEMPLATE@
81 LIBT2N_CODEGEN = @LIBT2N_CODEGEN@
82 LIBTOOL = @LIBTOOL@
83 LN_S = @LN_S@
84 LTLIB = @LTLIB@
85 MAKEINFO = @MAKEINFO@
86 OBJDUMP = @OBJDUMP@
87 OBJEXT = @OBJEXT@
88 PACKAGE = @PACKAGE@
89 PKG_CONFIG = @PKG_CONFIG@
90 RANLIB = @RANLIB@
91 STRIP = @STRIP@
92 VERSION = @VERSION@
93
94 AUTOMAKE_OPTIONS = foreign
95
96 INCLUDES = @LIBT2N_CFLAGS@
97 LDADD = @LIBT2N_LIBS@
98
99 # list your command groups
100 CMDGROUPS = default other
101
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
106
107 include_HEADERS = foo.hxx $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx)
108
109 # unfortunately we can't set those from variables
110 # because they are parsed by automake
111
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
115
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
120
121 libdefault_la_SOURCES = default_client.cpp
122 libother_la_SOURCES = other_client.cpp
123 lib_LTLIBRARIES = libdefault.la libother.la
124
125 # build an example server and client
126 client_SOURCES = client.cpp
127 client_LDADD = $(LDADD) libdefault.la libother.la
128
129 noinst_PROGRAMS = client
130
131 bin_PROGRAMS = libt2n-example2-server
132
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)
137
138 libt2n_example2_server_SOURCES = \
139         server.cpp $(other_GROUP) $(default_GROUP) \
140         other_server.cpp default_server.cpp
141
142
143 # test script
144
145 TESTS = test
146
147 EXTRA_DIST = $(TESTS) codegen.make
148
149 LIBT2N_CODEGEN_BUILT = $(foreach i, $(CMDGROUPS), $(foreach j, _common.hxx _common.cpp _client.hxx _client.cpp _server.hxx _server.cpp, $(i)$(j)) )
150
151 # using BUILT_SOURCES is a bit problematic (see also automake manual)
152 BUILT_SOURCES =  $(LIBT2N_CODEGEN_BUILT)
153
154 LIBT2N_STAMPS = $(CMDGROUPS:=.libt2nstamp)
155
156 # Install the pkg-config files: (todo: perhaps use +=)
157 pkgconfigdir = $(libdir)/pkgconfig
158 pkgconfig_DATA = $(CMDGROUPS:=.pc)
159
160 CLEANFILES =  $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA)
161 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
162 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
163 CONFIG_CLEAN_FILES = 
164 LTLIBRARIES =  $(lib_LTLIBRARIES)
165
166
167 DEFS = @DEFS@ -I. -I$(srcdir) 
168 CPPFLAGS = @CPPFLAGS@
169 LDFLAGS = @LDFLAGS@
170 LIBS = @LIBS@
171 libdefault_la_LDFLAGS = 
172 libdefault_la_LIBADD = 
173 libdefault_la_OBJECTS =  default_client.lo
174 libother_la_LDFLAGS = 
175 libother_la_LIBADD = 
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)
180
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
189 client_LDFLAGS = 
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)
193 CXXLD = $(CXX)
194 CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
195 CFLAGS = @CFLAGS@
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)
198 CCLD = $(CC)
199 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
200 DATA =  $(pkgconfig_DATA)
201
202 HEADERS =  $(include_HEADERS)
203
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
207
208
209 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
210
211 TAR = gtar
212 GZIP_ENV = --best
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)
219
220 all: all-redirect
221 .SUFFIXES:
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
225
226 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
227         cd $(top_builddir) \
228           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
229
230 $(ACLOCAL_M4):  configure.in 
231         cd $(srcdir) && $(ACLOCAL)
232
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)
237
238 mostlyclean-libLTLIBRARIES:
239
240 clean-libLTLIBRARIES:
241         -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
242
243 distclean-libLTLIBRARIES:
244
245 maintainer-clean-libLTLIBRARIES:
246
247 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
248         @$(NORMAL_INSTALL)
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; \
254           else :; fi; \
255         done
256
257 uninstall-libLTLIBRARIES:
258         @$(NORMAL_UNINSTALL)
259         list='$(lib_LTLIBRARIES)'; for p in $$list; do \
260           $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
261         done
262
263 # FIXME: We should only use cygpath when building on Windows,
264 # and only if it is available.
265 .c.obj:
266         $(COMPILE) -c `cygpath -w $<`
267
268 .s.o:
269         $(COMPILE) -c $<
270
271 .S.o:
272         $(COMPILE) -c $<
273
274 mostlyclean-compile:
275         -rm -f *.o core *.core
276         -rm -f *.$(OBJEXT)
277
278 clean-compile:
279
280 distclean-compile:
281         -rm -f *.tab.c
282
283 maintainer-clean-compile:
284
285 .s.lo:
286         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
287
288 .S.lo:
289         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
290
291 mostlyclean-libtool:
292         -rm -f *.lo
293
294 clean-libtool:
295         -rm -rf .libs _libs
296
297 distclean-libtool:
298
299 maintainer-clean-libtool:
300
301 libdefault.la: $(libdefault_la_OBJECTS) $(libdefault_la_DEPENDENCIES)
302         $(CXXLINK) -rpath $(libdir) $(libdefault_la_LDFLAGS) $(libdefault_la_OBJECTS) $(libdefault_la_LIBADD) $(LIBS)
303
304 libother.la: $(libother_la_OBJECTS) $(libother_la_DEPENDENCIES)
305         $(CXXLINK) -rpath $(libdir) $(libother_la_LDFLAGS) $(libother_la_OBJECTS) $(libother_la_LIBADD) $(LIBS)
306
307 mostlyclean-binPROGRAMS:
308
309 clean-binPROGRAMS:
310         -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
311
312 distclean-binPROGRAMS:
313
314 maintainer-clean-binPROGRAMS:
315
316 install-binPROGRAMS: $(bin_PROGRAMS)
317         @$(NORMAL_INSTALL)
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)/'`; \
323           else :; fi; \
324         done
325
326 uninstall-binPROGRAMS:
327         @$(NORMAL_UNINSTALL)
328         list='$(bin_PROGRAMS)'; for p in $$list; do \
329           rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
330         done
331
332 mostlyclean-noinstPROGRAMS:
333
334 clean-noinstPROGRAMS:
335         -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
336
337 distclean-noinstPROGRAMS:
338
339 maintainer-clean-noinstPROGRAMS:
340
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)
344
345 client$(EXEEXT): $(client_OBJECTS) $(client_DEPENDENCIES)
346         @rm -f client$(EXEEXT)
347         $(CXXLINK) $(client_LDFLAGS) $(client_OBJECTS) $(client_LDADD) $(LIBS)
348 .cpp.o:
349         $(CXXCOMPILE) -c $<
350 .cpp.obj:
351         $(CXXCOMPILE) -c `cygpath -w $<`
352 .cpp.lo:
353         $(LTCXXCOMPILE) -c $<
354
355 install-pkgconfigDATA: $(pkgconfig_DATA)
356         @$(NORMAL_INSTALL)
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; \
365           fi; fi; \
366         done
367
368 uninstall-pkgconfigDATA:
369         @$(NORMAL_UNINSTALL)
370         list='$(pkgconfig_DATA)'; for p in $$list; do \
371           rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
372         done
373
374 install-includeHEADERS: $(include_HEADERS)
375         @$(NORMAL_INSTALL)
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; \
381         done
382
383 uninstall-includeHEADERS:
384         @$(NORMAL_UNINSTALL)
385         list='$(include_HEADERS)'; for p in $$list; do \
386           rm -f $(DESTDIR)$(includedir)/$$p; \
387         done
388
389 tags: TAGS
390
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)
398
399 TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
400         tags=; \
401         here=`pwd`; \
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)
408
409 mostlyclean-tags:
410
411 clean-tags:
412
413 distclean-tags:
414         -rm -f TAGS ID
415
416 maintainer-clean-tags:
417
418 distdir = $(PACKAGE)-$(VERSION)
419 top_distdir = $(distdir)
420
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
423 # tarfile.
424 distcheck: dist
425         -rm -rf $(distdir)
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
438         -rm -rf $(distdir)
439         @banner="$(distdir).tar.gz is ready for distribution"; \
440         dashes=`echo "$$banner" | sed s/./=/g`; \
441         echo "$$dashes"; \
442         echo "$$banner"; \
443         echo "$$dashes"
444 dist: distdir
445         -chmod -R a+r $(distdir)
446         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
447         -rm -rf $(distdir)
448 dist-all: distdir
449         -chmod -R a+r $(distdir)
450         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
451         -rm -rf $(distdir)
452 distdir: $(DISTFILES)
453         -rm -rf $(distdir)
454         mkdir $(distdir)
455         -chmod 777 $(distdir)
456         here=`cd $(top_builddir) && pwd`; \
457         top_distdir=`cd $(distdir) && pwd`; \
458         distdir=`cd $(distdir) && pwd`; \
459         cd $(top_srcdir) \
460           && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
461         @for file in $(DISTFILES); do \
462           d=$(srcdir); \
463           if test -d $$d/$$file; then \
464             cp -pr $$d/$$file $(distdir)/$$file; \
465           else \
466             test -f $(distdir)/$$file \
467             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
468             || cp -p $$d/$$file $(distdir)/$$file || :; \
469           fi; \
470         done
471         $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
472
473 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
474
475 -include $(DEP_FILES)
476
477 mostlyclean-depend:
478
479 clean-depend:
480
481 distclean-depend:
482         -rm -rf .deps
483
484 maintainer-clean-depend:
485
486 %.o: %.c
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/$$/ :/' \
492             >> .deps/$(*F).P; \
493         rm .deps/$(*F).pp
494
495 %.lo: %.c
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/$$/ :/' \
502             >> .deps/$(*F).P; \
503         rm -f .deps/$(*F).pp
504
505 %.o: %.cpp
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/$$/ :/' \
511             >> .deps/$(*F).P; \
512         rm .deps/$(*F).pp
513
514 %.lo: %.cpp
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/$$/ :/' \
521             >> .deps/$(*F).P; \
522         rm -f .deps/$(*F).pp
523 check-TESTS: $(TESTS)
524         @failed=0; all=0; \
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"; \
536           fi; \
537         done; \
538         if test "$$failed" -eq 0; then \
539           banner="All $$all tests passed"; \
540         else \
541           banner="$$failed of $$all tests failed"; \
542         fi; \
543         dashes=`echo "$$banner" | sed s/./=/g`; \
544         echo "$$dashes"; \
545         echo "$$banner"; \
546         echo "$$dashes"; \
547         test "$$failed" -eq 0
548 info-am:
549 info: info-am
550 dvi-am:
551 dvi: dvi-am
552 check-am: all-am
553         $(MAKE) $(AM_MAKEFLAGS) check-TESTS
554 check: check-am
555 installcheck-am:
556 installcheck: installcheck-am
557 install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
558 install-exec: install-exec-am
559
560 install-data-am: install-pkgconfigDATA install-includeHEADERS
561 install-data: install-data-am
562
563 install-am: all-am
564         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
565 install: install-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)
570 all-redirect: all-am
571 install-strip:
572         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
573 installdirs:
574         $(mkinstalldirs)  $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
575                 $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(includedir)
576
577
578 mostlyclean-generic:
579
580 clean-generic:
581         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
582
583 distclean-generic:
584         -rm -f Makefile $(CONFIG_CLEAN_FILES)
585         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
586
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
593
594 mostlyclean: mostlyclean-am
595
596 clean-am:  clean-libLTLIBRARIES clean-compile clean-libtool \
597                 clean-binPROGRAMS clean-noinstPROGRAMS clean-tags \
598                 clean-depend clean-generic mostlyclean-am
599
600 clean: clean-am
601
602 distclean-am:  distclean-libLTLIBRARIES distclean-compile \
603                 distclean-libtool distclean-binPROGRAMS \
604                 distclean-noinstPROGRAMS distclean-tags \
605                 distclean-depend distclean-generic clean-am
606         -rm -f libtool
607
608 distclean: distclean-am
609         -rm -f config.status
610
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 \
616                 distclean-am
617         @echo "This command is intended for maintainers to use;"
618         @echo "it deletes files that may require special tools to rebuild."
619
620 maintainer-clean: maintainer-clean-am
621         -rm -f config.status
622
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
641
642
643 # not needed but nice to have
644 # IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j)))
645
646 -include $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P)
647
648 libt2ngroup_%.P : Makefile.am
649         echo $@ : $($*_GROUP) > libt2ngroup_$*.P
650
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)
662
663 # .pc files (one pc file for each command group)
664 %.pc : $(LIBT2N_CLIENT_PCTEMPLATE) Makefile
665         sed \
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' \
672         $< >$*.pc
673
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)
679
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))
684
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)
691
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.
694 .NOEXPORT: