added readme for example-codegen
[libt2n] / examples-codegen / example1 / 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 you have all needed files, that a GNU package needs
14
15
16# Makefile snippet included by projects using libt2n-codegen
17
18# Asumptions:
19# gnu make (functions for transforming text)
20# sed is available
21
22
23SHELL = @SHELL@
24
25srcdir = @srcdir@
26top_srcdir = @top_srcdir@
27VPATH = @srcdir@
28prefix = @prefix@
29exec_prefix = @exec_prefix@
30
31bindir = @bindir@
32sbindir = @sbindir@
33libexecdir = @libexecdir@
34datadir = @datadir@
35sysconfdir = @sysconfdir@
36sharedstatedir = @sharedstatedir@
37localstatedir = @localstatedir@
38libdir = @libdir@
39infodir = @infodir@
40mandir = @mandir@
41includedir = @includedir@
42oldincludedir = /usr/include
43
44DESTDIR =
45
46pkgdatadir = $(datadir)/@PACKAGE@
47pkglibdir = $(libdir)/@PACKAGE@
48pkgincludedir = $(includedir)/@PACKAGE@
49
50top_builddir = .
51
52ACLOCAL = @ACLOCAL@
53AUTOCONF = @AUTOCONF@
54AUTOMAKE = @AUTOMAKE@
55AUTOHEADER = @AUTOHEADER@
56
57INSTALL = @INSTALL@
58INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
59INSTALL_DATA = @INSTALL_DATA@
60INSTALL_SCRIPT = @INSTALL_SCRIPT@
61transform = @program_transform_name@
62
63NORMAL_INSTALL = :
64PRE_INSTALL = :
65POST_INSTALL = :
66NORMAL_UNINSTALL = :
67PRE_UNINSTALL = :
68POST_UNINSTALL = :
69host_alias = @host_alias@
70host_triplet = @host@
71AS = @AS@
72CC = @CC@
73CXX = @CXX@
74DLLTOOL = @DLLTOOL@
75ECHO = @ECHO@
76EXEEXT = @EXEEXT@
77HAVE_LIB = @HAVE_LIB@
78LIB = @LIB@
79LIBT2N_CLIENT_PCTEMPLATE = @LIBT2N_CLIENT_PCTEMPLATE@
80LIBT2N_CODEGEN = @LIBT2N_CODEGEN@
81LIBTOOL = @LIBTOOL@
82LN_S = @LN_S@
83LTLIB = @LTLIB@
84MAKEINFO = @MAKEINFO@
85OBJDUMP = @OBJDUMP@
86OBJEXT = @OBJEXT@
87PACKAGE = @PACKAGE@
88PKG_CONFIG = @PKG_CONFIG@
89RANLIB = @RANLIB@
90STRIP = @STRIP@
91VERSION = @VERSION@
92
93AUTOMAKE_OPTIONS = foreign
94
95# our dependencies
96INCLUDES = @LIBT2N_CFLAGS@
97LDADD = @LIBT2N_LIBS@
98
99# list your command groups (seperated by spaces)
100CMDGROUPS = t2nexample
101
102# for each command group list the files to parse for LIBT2N_EXPORT
103t2nexample_GROUP = t2nexample.cpp
104
105# unfortunately we can't set those from variables (because they are parsed by automake)
106
107# for each group build a client library from generated source file(s)
108# (if you have automake >= 1.5 you might wish to use nodist_ here)
109# Note: the library name must match the group name
110libt2nexample_la_SOURCES = t2nexample_client.cpp
111lib_LTLIBRARIES = libt2nexample.la
112
113# build server program
114bin_PROGRAMS = libt2n-example1-server
115
116# (if you have automake >= 1.5 you might wish to use nodist_ here)
117# nodist_server_SOURCES = t2nexample_server.cpp
118
119libt2n_example1_server_SOURCES = \
120 server.cpp $(t2nexample_GROUP) \
121 t2nexample_server.cpp
122
123
124include_HEADERS = $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx)
125
126LIBT2N_CODEGEN_BUILT = $(foreach i, $(CMDGROUPS), $(foreach j, _common.hxx _common.cpp _client.hxx _client.cpp _server.hxx _server.cpp, $(i)$(j)) )
127
128# using BUILT_SOURCES is a bit problematic (see also automake manual)
129BUILT_SOURCES = $(LIBT2N_CODEGEN_BUILT)
130
131LIBT2N_STAMPS = $(CMDGROUPS:=.libt2nstamp)
132
133# Install the pkg-config files: (todo: perhaps use +=)
134pkgconfigdir = $(libdir)/pkgconfig
135pkgconfig_DATA = $(CMDGROUPS:=.pc)
136
137CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA)
138
139EXTRA_DIST = codegen.make
140ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
141mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
142CONFIG_CLEAN_FILES =
143LTLIBRARIES = $(lib_LTLIBRARIES)
144
145
146DEFS = @DEFS@ -I. -I$(srcdir)
147CPPFLAGS = @CPPFLAGS@
148LDFLAGS = @LDFLAGS@
149LIBS = @LIBS@
150libt2nexample_la_LDFLAGS =
151libt2nexample_la_LIBADD =
152libt2nexample_la_OBJECTS = t2nexample_client.lo
153bin_PROGRAMS = libt2n-example1-server$(EXEEXT)
154PROGRAMS = $(bin_PROGRAMS)
155
156libt2n_example1_server_OBJECTS = server.$(OBJEXT) t2nexample.$(OBJEXT) \
157t2nexample_server.$(OBJEXT)
158libt2n_example1_server_LDADD = $(LDADD)
159libt2n_example1_server_DEPENDENCIES =
160libt2n_example1_server_LDFLAGS =
161CXXFLAGS = @CXXFLAGS@
162CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
163LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
164CXXLD = $(CXX)
165CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@
166CFLAGS = @CFLAGS@
167COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
168LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
169CCLD = $(CC)
170LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
171DATA = $(pkgconfig_DATA)
172
173HEADERS = $(include_HEADERS)
174
175DIST_COMMON = README COPYING Makefile.am Makefile.in TODO aclocal.m4 \
176config.guess config.sub configure configure.in install-sh ltmain.sh \
177missing mkinstalldirs
178
179
180DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
181
182TAR = gtar
183GZIP_ENV = --best
184DEP_FILES = .deps/_client.P .deps/_common.P .deps/server.P \
185.deps/t2nexample.P .deps/t2nexample_client.P .deps/t2nexample_server.P
186SOURCES = $(libt2nexample_la_SOURCES) $(libt2n_example1_server_SOURCES)
187OBJECTS = $(libt2nexample_la_OBJECTS) $(libt2n_example1_server_OBJECTS)
188
189all: all-redirect
190.SUFFIXES:
191.SUFFIXES: .S .c .cpp .lo .o .obj .s
192$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(srcdir)/codegen.make
193 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
194
195Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
196 cd $(top_builddir) \
197 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
198
199$(ACLOCAL_M4): configure.in
200 cd $(srcdir) && $(ACLOCAL)
201
202config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
203 $(SHELL) ./config.status --recheck
204$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
205 cd $(srcdir) && $(AUTOCONF)
206
207mostlyclean-libLTLIBRARIES:
208
209clean-libLTLIBRARIES:
210 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
211
212distclean-libLTLIBRARIES:
213
214maintainer-clean-libLTLIBRARIES:
215
216install-libLTLIBRARIES: $(lib_LTLIBRARIES)
217 @$(NORMAL_INSTALL)
218 $(mkinstalldirs) $(DESTDIR)$(libdir)
219 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
220 if test -f $$p; then \
221 echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
222 $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
223 else :; fi; \
224 done
225
226uninstall-libLTLIBRARIES:
227 @$(NORMAL_UNINSTALL)
228 list='$(lib_LTLIBRARIES)'; for p in $$list; do \
229 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
230 done
231
232# FIXME: We should only use cygpath when building on Windows,
233# and only if it is available.
234.c.obj:
235 $(COMPILE) -c `cygpath -w $<`
236
237.s.o:
238 $(COMPILE) -c $<
239
240.S.o:
241 $(COMPILE) -c $<
242
243mostlyclean-compile:
244 -rm -f *.o core *.core
245 -rm -f *.$(OBJEXT)
246
247clean-compile:
248
249distclean-compile:
250 -rm -f *.tab.c
251
252maintainer-clean-compile:
253
254.s.lo:
255 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
256
257.S.lo:
258 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
259
260mostlyclean-libtool:
261 -rm -f *.lo
262
263clean-libtool:
264 -rm -rf .libs _libs
265
266distclean-libtool:
267
268maintainer-clean-libtool:
269
270libt2nexample.la: $(libt2nexample_la_OBJECTS) $(libt2nexample_la_DEPENDENCIES)
271 $(CXXLINK) -rpath $(libdir) $(libt2nexample_la_LDFLAGS) $(libt2nexample_la_OBJECTS) $(libt2nexample_la_LIBADD) $(LIBS)
272
273mostlyclean-binPROGRAMS:
274
275clean-binPROGRAMS:
276 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
277
278distclean-binPROGRAMS:
279
280maintainer-clean-binPROGRAMS:
281
282install-binPROGRAMS: $(bin_PROGRAMS)
283 @$(NORMAL_INSTALL)
284 $(mkinstalldirs) $(DESTDIR)$(bindir)
285 @list='$(bin_PROGRAMS)'; for p in $$list; do \
286 if test -f $$p; then \
287 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
288 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
289 else :; fi; \
290 done
291
292uninstall-binPROGRAMS:
293 @$(NORMAL_UNINSTALL)
294 list='$(bin_PROGRAMS)'; for p in $$list; do \
295 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
296 done
297
298libt2n-example1-server$(EXEEXT): $(libt2n_example1_server_OBJECTS) $(libt2n_example1_server_DEPENDENCIES)
299 @rm -f libt2n-example1-server$(EXEEXT)
300 $(CXXLINK) $(libt2n_example1_server_LDFLAGS) $(libt2n_example1_server_OBJECTS) $(libt2n_example1_server_LDADD) $(LIBS)
301.cpp.o:
302 $(CXXCOMPILE) -c $<
303.cpp.obj:
304 $(CXXCOMPILE) -c `cygpath -w $<`
305.cpp.lo:
306 $(LTCXXCOMPILE) -c $<
307
308install-pkgconfigDATA: $(pkgconfig_DATA)
309 @$(NORMAL_INSTALL)
310 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
311 @list='$(pkgconfig_DATA)'; for p in $$list; do \
312 if test -f $(srcdir)/$$p; then \
313 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
314 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \
315 else if test -f $$p; then \
316 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
317 $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \
318 fi; fi; \
319 done
320
321uninstall-pkgconfigDATA:
322 @$(NORMAL_UNINSTALL)
323 list='$(pkgconfig_DATA)'; for p in $$list; do \
324 rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
325 done
326
327install-includeHEADERS: $(include_HEADERS)
328 @$(NORMAL_INSTALL)
329 $(mkinstalldirs) $(DESTDIR)$(includedir)
330 @list='$(include_HEADERS)'; for p in $$list; do \
331 if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
332 echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
333 $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
334 done
335
336uninstall-includeHEADERS:
337 @$(NORMAL_UNINSTALL)
338 list='$(include_HEADERS)'; for p in $$list; do \
339 rm -f $(DESTDIR)$(includedir)/$$p; \
340 done
341
342tags: TAGS
343
344ID: $(HEADERS) $(SOURCES) $(LISP)
345 list='$(SOURCES) $(HEADERS)'; \
346 unique=`for i in $$list; do echo $$i; done | \
347 awk ' { files[$$0] = 1; } \
348 END { for (i in files) print i; }'`; \
349 here=`pwd` && cd $(srcdir) \
350 && mkid -f$$here/ID $$unique $(LISP)
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
353 tags=; \
354 here=`pwd`; \
355 list='$(SOURCES) $(HEADERS)'; \
356 unique=`for i in $$list; do echo $$i; done | \
357 awk ' { files[$$0] = 1; } \
358 END { for (i in files) print i; }'`; \
359 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
360 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
361
362mostlyclean-tags:
363
364clean-tags:
365
366distclean-tags:
367 -rm -f TAGS ID
368
369maintainer-clean-tags:
370
371distdir = $(PACKAGE)-$(VERSION)
372top_distdir = $(distdir)
373
374# This target untars the dist file and tries a VPATH configuration. Then
375# it guarantees that the distribution is self-contained by making another
376# tarfile.
377distcheck: dist
378 -rm -rf $(distdir)
379 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
380 mkdir $(distdir)/=build
381 mkdir $(distdir)/=inst
382 dc_install_base=`cd $(distdir)/=inst && pwd`; \
383 cd $(distdir)/=build \
384 && ../configure --srcdir=.. --prefix=$$dc_install_base \
385 && $(MAKE) $(AM_MAKEFLAGS) \
386 && $(MAKE) $(AM_MAKEFLAGS) dvi \
387 && $(MAKE) $(AM_MAKEFLAGS) check \
388 && $(MAKE) $(AM_MAKEFLAGS) install \
389 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
390 && $(MAKE) $(AM_MAKEFLAGS) dist
391 -rm -rf $(distdir)
392 @banner="$(distdir).tar.gz is ready for distribution"; \
393 dashes=`echo "$$banner" | sed s/./=/g`; \
394 echo "$$dashes"; \
395 echo "$$banner"; \
396 echo "$$dashes"
397dist: distdir
398 -chmod -R a+r $(distdir)
399 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
400 -rm -rf $(distdir)
401dist-all: distdir
402 -chmod -R a+r $(distdir)
403 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
404 -rm -rf $(distdir)
405distdir: $(DISTFILES)
406 -rm -rf $(distdir)
407 mkdir $(distdir)
408 -chmod 777 $(distdir)
409 here=`cd $(top_builddir) && pwd`; \
410 top_distdir=`cd $(distdir) && pwd`; \
411 distdir=`cd $(distdir) && pwd`; \
412 cd $(top_srcdir) \
413 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
414 @for file in $(DISTFILES); do \
415 d=$(srcdir); \
416 if test -d $$d/$$file; then \
417 cp -pr $$d/$$file $(distdir)/$$file; \
418 else \
419 test -f $(distdir)/$$file \
420 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
421 || cp -p $$d/$$file $(distdir)/$$file || :; \
422 fi; \
423 done
424 $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
425
426DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
427
428-include $(DEP_FILES)
429
430mostlyclean-depend:
431
432clean-depend:
433
434distclean-depend:
435 -rm -rf .deps
436
437maintainer-clean-depend:
438
439%.o: %.c
440 @echo '$(COMPILE) -c $<'; \
441 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
442 @-cp .deps/$(*F).pp .deps/$(*F).P; \
443 tr ' ' '\012' < .deps/$(*F).pp \
444 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
445 >> .deps/$(*F).P; \
446 rm .deps/$(*F).pp
447
448%.lo: %.c
449 @echo '$(LTCOMPILE) -c $<'; \
450 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
451 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
452 < .deps/$(*F).pp > .deps/$(*F).P; \
453 tr ' ' '\012' < .deps/$(*F).pp \
454 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
455 >> .deps/$(*F).P; \
456 rm -f .deps/$(*F).pp
457
458%.o: %.cpp
459 @echo '$(CXXCOMPILE) -c $<'; \
460 $(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
461 @-cp .deps/$(*F).pp .deps/$(*F).P; \
462 tr ' ' '\012' < .deps/$(*F).pp \
463 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
464 >> .deps/$(*F).P; \
465 rm .deps/$(*F).pp
466
467%.lo: %.cpp
468 @echo '$(LTCXXCOMPILE) -c $<'; \
469 $(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
470 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
471 < .deps/$(*F).pp > .deps/$(*F).P; \
472 tr ' ' '\012' < .deps/$(*F).pp \
473 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
474 >> .deps/$(*F).P; \
475 rm -f .deps/$(*F).pp
476info-am:
477info: info-am
478dvi-am:
479dvi: dvi-am
480check-am: all-am
481check: check-am
482installcheck-am:
483installcheck: installcheck-am
484install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
485install-exec: install-exec-am
486
487install-data-am: install-pkgconfigDATA install-includeHEADERS
488install-data: install-data-am
489
490install-am: all-am
491 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
492install: install-am
493uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
494 uninstall-pkgconfigDATA uninstall-includeHEADERS
495uninstall: uninstall-am
496all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS)
497all-redirect: all-am
498install-strip:
499 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
500installdirs:
501 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
502 $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(includedir)
503
504
505mostlyclean-generic:
506
507clean-generic:
508 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
509
510distclean-generic:
511 -rm -f Makefile $(CONFIG_CLEAN_FILES)
512 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
513
514maintainer-clean-generic:
515 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
516mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
517 mostlyclean-libtool mostlyclean-binPROGRAMS \
518 mostlyclean-tags mostlyclean-depend mostlyclean-generic
519
520mostlyclean: mostlyclean-am
521
522clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
523 clean-binPROGRAMS clean-tags clean-depend clean-generic \
524 mostlyclean-am
525
526clean: clean-am
527
528distclean-am: distclean-libLTLIBRARIES distclean-compile \
529 distclean-libtool distclean-binPROGRAMS distclean-tags \
530 distclean-depend distclean-generic clean-am
531 -rm -f libtool
532
533distclean: distclean-am
534 -rm -f config.status
535
536maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
537 maintainer-clean-compile maintainer-clean-libtool \
538 maintainer-clean-binPROGRAMS maintainer-clean-tags \
539 maintainer-clean-depend maintainer-clean-generic \
540 distclean-am
541 @echo "This command is intended for maintainers to use;"
542 @echo "it deletes files that may require special tools to rebuild."
543
544maintainer-clean: maintainer-clean-am
545 -rm -f config.status
546
547.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
548clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
549uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
550distclean-compile clean-compile maintainer-clean-compile \
551mostlyclean-libtool distclean-libtool clean-libtool \
552maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
553clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
554install-binPROGRAMS uninstall-pkgconfigDATA install-pkgconfigDATA \
555uninstall-includeHEADERS install-includeHEADERS tags mostlyclean-tags \
556distclean-tags clean-tags maintainer-clean-tags distdir \
557mostlyclean-depend distclean-depend clean-depend \
558maintainer-clean-depend info-am info dvi-am dvi check check-am \
559installcheck-am installcheck install-exec-am install-exec \
560install-data-am install-data install-am install uninstall-am uninstall \
561all-redirect all-am all installdirs mostlyclean-generic \
562distclean-generic clean-generic maintainer-clean-generic clean \
563mostlyclean distclean maintainer-clean
564
565
566# not needed but nice to have
567# IFILES=$(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j)))
568
569-include $(foreach i, $(CMDGROUPS), libt2ngroup_$(i).P)
570
571libt2ngroup_%.P : Makefile.am
572 echo $@ : $($*_GROUP) > libt2ngroup_$*.P
573
574%.libt2nstamp : libt2ngroup_%.P
575# assuming we have some unix like shell (maybe even bash)
576# echo BUILT_SOURCES: $(BUILT_SOURCES)
577# temporarily create _common.hxx file (will be overwritten by codegen below)
578 echo '#include "codegen-stubhead.hxx"' > $*_common.hxx;
579 echo '#include "$*.hxx"' >> $*_common.hxx;
580# todo use tmp file for xml file
581 for i in $($*_GROUP); do \
582 gccxml $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) $(srcdir)/$${i} -fxml=$${i%*.cpp}.xml; \
583 done && $(LIBT2N_CODEGEN) $* $($*_GROUP:.cpp=.xml) && touch $@
584$(BUILT_SOURCES) : $(LIBT2N_STAMPS)
585
586# .pc files (one pc file for each command group)
587%.pc : $(LIBT2N_CLIENT_PCTEMPLATE) Makefile
588 sed \
589 -e 's,\@CMDGROUP\@,$*,g' \
590 -e 's,\@prefix\@,$(prefix),g' \
591 -e 's,\@exec_prefix\@,$(exec_prefix),g' \
592 -e 's,\@libdir\@,$(libdir),g' \
593 -e 's,\@includedir\@,$(includedir),g' \
594 -e 's,\@VERSION\@,$(VERSION),g' \
595 $< >$*.pc
596
597# didn't work (same problem as with _LTLIBRARIES [parsing by automake],
598# this time _OBJECTS was not correct)
599# server_SOURCES = server.cpp \
600# $(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) \
601# $(foreach i, $(CMDGROUPS), $(i)_server.cpp)
602
603# we have got an old automake version (1.4-p5) which doesn't support nodist_
604# => we use this hack using the dist-hook
605dist-hook: $(LIBT2N_CODEGEN_BUILT)
606 rm -vf $(foreach i, $(LIBT2N_CODEGEN_BUILT), $(distdir)/$(i))
607
608# include Makefile snippet doing all the magic
609
610# Tell versions [3.59,3.63) of GNU make to not export all variables.
611# Otherwise a system limit (for SysV at least) may be exceeded.
612.NOEXPORT: