Obsolete libdbus2cpp
[libt2n] / examples-codegen / example2 / Makefile.in
CommitLineData
208db683
JT
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
24SHELL = @SHELL@
25
26srcdir = @srcdir@
27top_srcdir = @top_srcdir@
28VPATH = @srcdir@
29prefix = @prefix@
30exec_prefix = @exec_prefix@
31
32bindir = @bindir@
33sbindir = @sbindir@
34libexecdir = @libexecdir@
35datadir = @datadir@
36sysconfdir = @sysconfdir@
37sharedstatedir = @sharedstatedir@
38localstatedir = @localstatedir@
39libdir = @libdir@
40infodir = @infodir@
41mandir = @mandir@
42includedir = @includedir@
43oldincludedir = /usr/include
44
45DESTDIR =
46
47pkgdatadir = $(datadir)/@PACKAGE@
48pkglibdir = $(libdir)/@PACKAGE@
49pkgincludedir = $(includedir)/@PACKAGE@
50
51top_builddir = .
52
53ACLOCAL = @ACLOCAL@
54AUTOCONF = @AUTOCONF@
55AUTOMAKE = @AUTOMAKE@
56AUTOHEADER = @AUTOHEADER@
57
58INSTALL = @INSTALL@
59INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
60INSTALL_DATA = @INSTALL_DATA@
61INSTALL_SCRIPT = @INSTALL_SCRIPT@
62transform = @program_transform_name@
63
64NORMAL_INSTALL = :
65PRE_INSTALL = :
66POST_INSTALL = :
67NORMAL_UNINSTALL = :
68PRE_UNINSTALL = :
69POST_UNINSTALL = :
70host_alias = @host_alias@
71host_triplet = @host@
72AS = @AS@
73CC = @CC@
74CXX = @CXX@
75DLLTOOL = @DLLTOOL@
76ECHO = @ECHO@
77EXEEXT = @EXEEXT@
78HAVE_LIB = @HAVE_LIB@
79LIB = @LIB@
80LIBT2N_CLIENT_PCTEMPLATE = @LIBT2N_CLIENT_PCTEMPLATE@
81LIBT2N_CODEGEN = @LIBT2N_CODEGEN@
82LIBTOOL = @LIBTOOL@
83LN_S = @LN_S@
84LTLIB = @LTLIB@
85MAKEINFO = @MAKEINFO@
86OBJDUMP = @OBJDUMP@
87OBJEXT = @OBJEXT@
88PACKAGE = @PACKAGE@
89PKG_CONFIG = @PKG_CONFIG@
90RANLIB = @RANLIB@
91STRIP = @STRIP@
92VERSION = @VERSION@
93
94AUTOMAKE_OPTIONS = foreign
95
96INCLUDES = @LIBT2N_CFLAGS@
97LDADD = @LIBT2N_LIBS@
98
99# list your command groups
100CMDGROUPS = default other
101
102# for each command group list the files to parse for LIBT2N_EXPORT
103default_GROUP = default.cpp
104# example of a command group using multiple cpp files
105other_GROUP = other-1.cpp other-2.cpp
106
107include_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
121libdefault_la_SOURCES = default_client.cpp
122libother_la_SOURCES = other_client.cpp
123lib_LTLIBRARIES = libdefault.la libother.la
124
125# build an example server and client
126client_SOURCES = client.cpp
127client_LDADD = $(LDADD) libdefault.la libother.la
128
129noinst_PROGRAMS = client
130
131bin_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
138libt2n_example2_server_SOURCES = \
139 server.cpp $(other_GROUP) $(default_GROUP) \
140 other_server.cpp default_server.cpp
141
142
143# test script
144
145TESTS = test
146
147EXTRA_DIST = $(TESTS) codegen.make
148
149LIBT2N_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)
152BUILT_SOURCES = $(LIBT2N_CODEGEN_BUILT)
153
154LIBT2N_STAMPS = $(CMDGROUPS:=.libt2nstamp)
155
156# Install the pkg-config files: (todo: perhaps use +=)
157pkgconfigdir = $(libdir)/pkgconfig
158pkgconfig_DATA = $(CMDGROUPS:=.pc)
159
160CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA)
161ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
162mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
163CONFIG_CLEAN_FILES =
164LTLIBRARIES = $(lib_LTLIBRARIES)
165
166
167DEFS = @DEFS@ -I. -I$(srcdir)
168CPPFLAGS = @CPPFLAGS@
169LDFLAGS = @LDFLAGS@
170LIBS = @LIBS@
171libdefault_la_LDFLAGS =
172libdefault_la_LIBADD =
173libdefault_la_OBJECTS = default_client.lo
174libother_la_LDFLAGS =
175libother_la_LIBADD =
176libother_la_OBJECTS = other_client.lo
177bin_PROGRAMS = libt2n-example2-server$(EXEEXT)
178noinst_PROGRAMS = client$(EXEEXT)
179PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
180
181libt2n_example2_server_OBJECTS = server.$(OBJEXT) other-1.$(OBJEXT) \
182other-2.$(OBJEXT) default.$(OBJEXT) other_server.$(OBJEXT) \
183default_server.$(OBJEXT)
184libt2n_example2_server_LDADD = $(LDADD)
185libt2n_example2_server_DEPENDENCIES =
186libt2n_example2_server_LDFLAGS =
187client_OBJECTS = client.$(OBJEXT)
188client_DEPENDENCIES = libdefault.la libother.la
189client_LDFLAGS =
190CXXFLAGS = @CXXFLAGS@
191CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
192LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
193CXXLD = $(CXX)
194CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
195CFLAGS = @CFLAGS@
196COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
197LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
198CCLD = $(CC)
199LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
200DATA = $(pkgconfig_DATA)
201
202HEADERS = $(include_HEADERS)
203
204DIST_COMMON = README COPYING Makefile.am Makefile.in aclocal.m4 \
205config.guess config.sub configure configure.in install-sh ltmain.sh \
206missing mkinstalldirs
207
208
209DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
210
211TAR = gtar
212GZIP_ENV = --best
213DEP_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
217SOURCES = $(libdefault_la_SOURCES) $(libother_la_SOURCES) $(libt2n_example2_server_SOURCES) $(client_SOURCES)
218OBJECTS = $(libdefault_la_OBJECTS) $(libother_la_OBJECTS) $(libt2n_example2_server_OBJECTS) $(client_OBJECTS)
219
220all: 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
226Makefile: $(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
233config.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
238mostlyclean-libLTLIBRARIES:
239
240clean-libLTLIBRARIES:
241 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
242
243distclean-libLTLIBRARIES:
244
245maintainer-clean-libLTLIBRARIES:
246
247install-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
257uninstall-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
274mostlyclean-compile:
275 -rm -f *.o core *.core
276 -rm -f *.$(OBJEXT)
277
278clean-compile:
279
280distclean-compile:
281 -rm -f *.tab.c
282
283maintainer-clean-compile:
284
285.s.lo:
286 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
287
288.S.lo:
289 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
290
291mostlyclean-libtool:
292 -rm -f *.lo
293
294clean-libtool:
295 -rm -rf .libs _libs
296
297distclean-libtool:
298
299maintainer-clean-libtool:
300
301libdefault.la: $(libdefault_la_OBJECTS) $(libdefault_la_DEPENDENCIES)
302 $(CXXLINK) -rpath $(libdir) $(libdefault_la_LDFLAGS) $(libdefault_la_OBJECTS) $(libdefault_la_LIBADD) $(LIBS)
303
304libother.la: $(libother_la_OBJECTS) $(libother_la_DEPENDENCIES)
305 $(CXXLINK) -rpath $(libdir) $(libother_la_LDFLAGS) $(libother_la_OBJECTS) $(libother_la_LIBADD) $(LIBS)
306
307mostlyclean-binPROGRAMS:
308
309clean-binPROGRAMS:
310 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
311
312distclean-binPROGRAMS:
313
314maintainer-clean-binPROGRAMS:
315
316install-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
326uninstall-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
332mostlyclean-noinstPROGRAMS:
333
334clean-noinstPROGRAMS:
335 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
336
337distclean-noinstPROGRAMS:
338
339maintainer-clean-noinstPROGRAMS:
340
341libt2n-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
345client$(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
355install-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
368uninstall-pkgconfigDATA:
369 @$(NORMAL_UNINSTALL)
370 list='$(pkgconfig_DATA)'; for p in $$list; do \
371 rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
372 done
373
374install-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
383uninstall-includeHEADERS:
384 @$(NORMAL_UNINSTALL)
385 list='$(include_HEADERS)'; for p in $$list; do \
386 rm -f $(DESTDIR)$(includedir)/$$p; \
387 done
388
389tags: TAGS
390
391ID: $(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
399TAGS: $(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
409mostlyclean-tags:
410
411clean-tags:
412
413distclean-tags:
414 -rm -f TAGS ID
415
416maintainer-clean-tags:
417
418distdir = $(PACKAGE)-$(VERSION)
419top_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.
424distcheck: 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"
444dist: distdir
445 -chmod -R a+r $(distdir)
446 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
447 -rm -rf $(distdir)
448dist-all: distdir
449 -chmod -R a+r $(distdir)
450 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
451 -rm -rf $(distdir)
452distdir: $(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
473DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
474
475-include $(DEP_FILES)
476
477mostlyclean-depend:
478
479clean-depend:
480
481distclean-depend:
482 -rm -rf .deps
483
484maintainer-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
523check-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
548info-am:
549info: info-am
550dvi-am:
551dvi: dvi-am
552check-am: all-am
553 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
554check: check-am
555installcheck-am:
556installcheck: installcheck-am
557install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
558install-exec: install-exec-am
559
560install-data-am: install-pkgconfigDATA install-includeHEADERS
561install-data: install-data-am
562
563install-am: all-am
564 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
565install: install-am
566uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
567 uninstall-pkgconfigDATA uninstall-includeHEADERS
568uninstall: uninstall-am
569all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS)
570all-redirect: all-am
571install-strip:
572 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
573installdirs:
574 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
575 $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(includedir)
576
577
578mostlyclean-generic:
579
580clean-generic:
581 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
582
583distclean-generic:
584 -rm -f Makefile $(CONFIG_CLEAN_FILES)
585 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
586
587maintainer-clean-generic:
588 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
589mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
590 mostlyclean-libtool mostlyclean-binPROGRAMS \
591 mostlyclean-noinstPROGRAMS mostlyclean-tags \
592 mostlyclean-depend mostlyclean-generic
593
594mostlyclean: mostlyclean-am
595
596clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
597 clean-binPROGRAMS clean-noinstPROGRAMS clean-tags \
598 clean-depend clean-generic mostlyclean-am
599
600clean: clean-am
601
602distclean-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
608distclean: distclean-am
609 -rm -f config.status
610
611maintainer-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
620maintainer-clean: maintainer-clean-am
621 -rm -f config.status
622
623.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
624clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
625uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
626distclean-compile clean-compile maintainer-clean-compile \
627mostlyclean-libtool distclean-libtool clean-libtool \
628maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
629clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
630install-binPROGRAMS mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
631clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
632uninstall-pkgconfigDATA install-pkgconfigDATA uninstall-includeHEADERS \
633install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
634maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
635clean-depend maintainer-clean-depend check-TESTS info-am info dvi-am \
636dvi check check-am installcheck-am installcheck install-exec-am \
637install-exec install-data-am install-data install-am install \
638uninstall-am uninstall all-redirect all-am all installdirs \
639mostlyclean-generic distclean-generic clean-generic \
640maintainer-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
648libt2ngroup_%.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
682dist-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: