Commit | Line | Data |
---|---|---|
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 | ||
23 | SHELL = @SHELL@ | |
24 | ||
25 | srcdir = @srcdir@ | |
26 | top_srcdir = @top_srcdir@ | |
27 | VPATH = @srcdir@ | |
28 | prefix = @prefix@ | |
29 | exec_prefix = @exec_prefix@ | |
30 | ||
31 | bindir = @bindir@ | |
32 | sbindir = @sbindir@ | |
33 | libexecdir = @libexecdir@ | |
34 | datadir = @datadir@ | |
35 | sysconfdir = @sysconfdir@ | |
36 | sharedstatedir = @sharedstatedir@ | |
37 | localstatedir = @localstatedir@ | |
38 | libdir = @libdir@ | |
39 | infodir = @infodir@ | |
40 | mandir = @mandir@ | |
41 | includedir = @includedir@ | |
42 | oldincludedir = /usr/include | |
43 | ||
44 | DESTDIR = | |
45 | ||
46 | pkgdatadir = $(datadir)/@PACKAGE@ | |
47 | pkglibdir = $(libdir)/@PACKAGE@ | |
48 | pkgincludedir = $(includedir)/@PACKAGE@ | |
49 | ||
50 | top_builddir = . | |
51 | ||
52 | ACLOCAL = @ACLOCAL@ | |
53 | AUTOCONF = @AUTOCONF@ | |
54 | AUTOMAKE = @AUTOMAKE@ | |
55 | AUTOHEADER = @AUTOHEADER@ | |
56 | ||
57 | INSTALL = @INSTALL@ | |
58 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | |
59 | INSTALL_DATA = @INSTALL_DATA@ | |
60 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
61 | transform = @program_transform_name@ | |
62 | ||
63 | NORMAL_INSTALL = : | |
64 | PRE_INSTALL = : | |
65 | POST_INSTALL = : | |
66 | NORMAL_UNINSTALL = : | |
67 | PRE_UNINSTALL = : | |
68 | POST_UNINSTALL = : | |
69 | host_alias = @host_alias@ | |
70 | host_triplet = @host@ | |
71 | AS = @AS@ | |
72 | CC = @CC@ | |
73 | CXX = @CXX@ | |
74 | DLLTOOL = @DLLTOOL@ | |
75 | ECHO = @ECHO@ | |
76 | EXEEXT = @EXEEXT@ | |
77 | HAVE_LIB = @HAVE_LIB@ | |
78 | LIB = @LIB@ | |
79 | LIBT2N_CLIENT_PCTEMPLATE = @LIBT2N_CLIENT_PCTEMPLATE@ | |
80 | LIBT2N_CODEGEN = @LIBT2N_CODEGEN@ | |
81 | LIBTOOL = @LIBTOOL@ | |
82 | LN_S = @LN_S@ | |
83 | LTLIB = @LTLIB@ | |
84 | MAKEINFO = @MAKEINFO@ | |
85 | OBJDUMP = @OBJDUMP@ | |
86 | OBJEXT = @OBJEXT@ | |
87 | PACKAGE = @PACKAGE@ | |
88 | PKG_CONFIG = @PKG_CONFIG@ | |
89 | RANLIB = @RANLIB@ | |
90 | STRIP = @STRIP@ | |
91 | VERSION = @VERSION@ | |
92 | ||
93 | AUTOMAKE_OPTIONS = foreign | |
94 | ||
95 | # our dependencies | |
96 | INCLUDES = @LIBT2N_CFLAGS@ | |
97 | LDADD = @LIBT2N_LIBS@ | |
98 | ||
99 | # list your command groups (seperated by spaces) | |
100 | CMDGROUPS = t2nexample | |
101 | ||
102 | # for each command group list the files to parse for LIBT2N_EXPORT | |
103 | t2nexample_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 | |
110 | libt2nexample_la_SOURCES = t2nexample_client.cpp | |
111 | lib_LTLIBRARIES = libt2nexample.la | |
112 | ||
113 | # build server program | |
114 | bin_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 | ||
119 | libt2n_example1_server_SOURCES = \ | |
120 | server.cpp $(t2nexample_GROUP) \ | |
121 | t2nexample_server.cpp | |
122 | ||
123 | ||
124 | include_HEADERS = $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx) | |
125 | ||
126 | LIBT2N_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) | |
129 | BUILT_SOURCES = $(LIBT2N_CODEGEN_BUILT) | |
130 | ||
131 | LIBT2N_STAMPS = $(CMDGROUPS:=.libt2nstamp) | |
132 | ||
133 | # Install the pkg-config files: (todo: perhaps use +=) | |
134 | pkgconfigdir = $(libdir)/pkgconfig | |
135 | pkgconfig_DATA = $(CMDGROUPS:=.pc) | |
136 | ||
137 | CLEANFILES = $(LIBT2N_CODEGEN_BUILT) $(LIBT2N_STAMPS) $(pkgconfig_DATA) | |
138 | ||
139 | EXTRA_DIST = codegen.make | |
140 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
141 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
142 | CONFIG_CLEAN_FILES = | |
143 | LTLIBRARIES = $(lib_LTLIBRARIES) | |
144 | ||
145 | ||
146 | DEFS = @DEFS@ -I. -I$(srcdir) | |
147 | CPPFLAGS = @CPPFLAGS@ | |
148 | LDFLAGS = @LDFLAGS@ | |
149 | LIBS = @LIBS@ | |
150 | libt2nexample_la_LDFLAGS = | |
151 | libt2nexample_la_LIBADD = | |
152 | libt2nexample_la_OBJECTS = t2nexample_client.lo | |
153 | bin_PROGRAMS = libt2n-example1-server$(EXEEXT) | |
154 | PROGRAMS = $(bin_PROGRAMS) | |
155 | ||
156 | libt2n_example1_server_OBJECTS = server.$(OBJEXT) t2nexample.$(OBJEXT) \ | |
157 | t2nexample_server.$(OBJEXT) | |
158 | libt2n_example1_server_LDADD = $(LDADD) | |
159 | libt2n_example1_server_DEPENDENCIES = | |
160 | libt2n_example1_server_LDFLAGS = | |
161 | CXXFLAGS = @CXXFLAGS@ | |
162 | CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | |
163 | LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | |
164 | CXXLD = $(CXX) | |
165 | CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ | |
166 | CFLAGS = @CFLAGS@ | |
167 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
168 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
169 | CCLD = $(CC) | |
170 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ | |
171 | DATA = $(pkgconfig_DATA) | |
172 | ||
173 | HEADERS = $(include_HEADERS) | |
174 | ||
175 | DIST_COMMON = README COPYING Makefile.am Makefile.in TODO aclocal.m4 \ | |
176 | config.guess config.sub configure configure.in install-sh ltmain.sh \ | |
177 | missing mkinstalldirs | |
178 | ||
179 | ||
180 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | |
181 | ||
182 | TAR = gtar | |
183 | GZIP_ENV = --best | |
184 | DEP_FILES = .deps/_client.P .deps/_common.P .deps/server.P \ | |
185 | .deps/t2nexample.P .deps/t2nexample_client.P .deps/t2nexample_server.P | |
186 | SOURCES = $(libt2nexample_la_SOURCES) $(libt2n_example1_server_SOURCES) | |
187 | OBJECTS = $(libt2nexample_la_OBJECTS) $(libt2n_example1_server_OBJECTS) | |
188 | ||
189 | all: 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 | ||
195 | Makefile: $(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 | ||
202 | config.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 | ||
207 | mostlyclean-libLTLIBRARIES: | |
208 | ||
209 | clean-libLTLIBRARIES: | |
210 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | |
211 | ||
212 | distclean-libLTLIBRARIES: | |
213 | ||
214 | maintainer-clean-libLTLIBRARIES: | |
215 | ||
216 | install-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 | ||
226 | uninstall-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 | ||
243 | mostlyclean-compile: | |
244 | -rm -f *.o core *.core | |
245 | -rm -f *.$(OBJEXT) | |
246 | ||
247 | clean-compile: | |
248 | ||
249 | distclean-compile: | |
250 | -rm -f *.tab.c | |
251 | ||
252 | maintainer-clean-compile: | |
253 | ||
254 | .s.lo: | |
255 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
256 | ||
257 | .S.lo: | |
258 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
259 | ||
260 | mostlyclean-libtool: | |
261 | -rm -f *.lo | |
262 | ||
263 | clean-libtool: | |
264 | -rm -rf .libs _libs | |
265 | ||
266 | distclean-libtool: | |
267 | ||
268 | maintainer-clean-libtool: | |
269 | ||
270 | libt2nexample.la: $(libt2nexample_la_OBJECTS) $(libt2nexample_la_DEPENDENCIES) | |
271 | $(CXXLINK) -rpath $(libdir) $(libt2nexample_la_LDFLAGS) $(libt2nexample_la_OBJECTS) $(libt2nexample_la_LIBADD) $(LIBS) | |
272 | ||
273 | mostlyclean-binPROGRAMS: | |
274 | ||
275 | clean-binPROGRAMS: | |
276 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
277 | ||
278 | distclean-binPROGRAMS: | |
279 | ||
280 | maintainer-clean-binPROGRAMS: | |
281 | ||
282 | install-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 | ||
292 | uninstall-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 | ||
298 | libt2n-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 | ||
308 | install-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 | ||
321 | uninstall-pkgconfigDATA: | |
322 | @$(NORMAL_UNINSTALL) | |
323 | list='$(pkgconfig_DATA)'; for p in $$list; do \ | |
324 | rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \ | |
325 | done | |
326 | ||
327 | install-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 | ||
336 | uninstall-includeHEADERS: | |
337 | @$(NORMAL_UNINSTALL) | |
338 | list='$(include_HEADERS)'; for p in $$list; do \ | |
339 | rm -f $(DESTDIR)$(includedir)/$$p; \ | |
340 | done | |
341 | ||
342 | tags: TAGS | |
343 | ||
344 | ID: $(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 | ||
352 | TAGS: $(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 | ||
362 | mostlyclean-tags: | |
363 | ||
364 | clean-tags: | |
365 | ||
366 | distclean-tags: | |
367 | -rm -f TAGS ID | |
368 | ||
369 | maintainer-clean-tags: | |
370 | ||
371 | distdir = $(PACKAGE)-$(VERSION) | |
372 | top_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. | |
377 | distcheck: 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" | |
397 | dist: distdir | |
398 | -chmod -R a+r $(distdir) | |
399 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
400 | -rm -rf $(distdir) | |
401 | dist-all: distdir | |
402 | -chmod -R a+r $(distdir) | |
403 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
404 | -rm -rf $(distdir) | |
405 | distdir: $(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 | ||
426 | DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) | |
427 | ||
428 | -include $(DEP_FILES) | |
429 | ||
430 | mostlyclean-depend: | |
431 | ||
432 | clean-depend: | |
433 | ||
434 | distclean-depend: | |
435 | -rm -rf .deps | |
436 | ||
437 | maintainer-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 | |
476 | info-am: | |
477 | info: info-am | |
478 | dvi-am: | |
479 | dvi: dvi-am | |
480 | check-am: all-am | |
481 | check: check-am | |
482 | installcheck-am: | |
483 | installcheck: installcheck-am | |
484 | install-exec-am: install-libLTLIBRARIES install-binPROGRAMS | |
485 | install-exec: install-exec-am | |
486 | ||
487 | install-data-am: install-pkgconfigDATA install-includeHEADERS | |
488 | install-data: install-data-am | |
489 | ||
490 | install-am: all-am | |
491 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
492 | install: install-am | |
493 | uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \ | |
494 | uninstall-pkgconfigDATA uninstall-includeHEADERS | |
495 | uninstall: uninstall-am | |
496 | all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) | |
497 | all-redirect: all-am | |
498 | install-strip: | |
499 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | |
500 | installdirs: | |
501 | $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \ | |
502 | $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(includedir) | |
503 | ||
504 | ||
505 | mostlyclean-generic: | |
506 | ||
507 | clean-generic: | |
508 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
509 | ||
510 | distclean-generic: | |
511 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | |
512 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | |
513 | ||
514 | maintainer-clean-generic: | |
515 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | |
516 | mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \ | |
517 | mostlyclean-libtool mostlyclean-binPROGRAMS \ | |
518 | mostlyclean-tags mostlyclean-depend mostlyclean-generic | |
519 | ||
520 | mostlyclean: mostlyclean-am | |
521 | ||
522 | clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \ | |
523 | clean-binPROGRAMS clean-tags clean-depend clean-generic \ | |
524 | mostlyclean-am | |
525 | ||
526 | clean: clean-am | |
527 | ||
528 | distclean-am: distclean-libLTLIBRARIES distclean-compile \ | |
529 | distclean-libtool distclean-binPROGRAMS distclean-tags \ | |
530 | distclean-depend distclean-generic clean-am | |
531 | -rm -f libtool | |
532 | ||
533 | distclean: distclean-am | |
534 | -rm -f config.status | |
535 | ||
536 | maintainer-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 | ||
544 | maintainer-clean: maintainer-clean-am | |
545 | -rm -f config.status | |
546 | ||
547 | .PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \ | |
548 | clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \ | |
549 | uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \ | |
550 | distclean-compile clean-compile maintainer-clean-compile \ | |
551 | mostlyclean-libtool distclean-libtool clean-libtool \ | |
552 | maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \ | |
553 | clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \ | |
554 | install-binPROGRAMS uninstall-pkgconfigDATA install-pkgconfigDATA \ | |
555 | uninstall-includeHEADERS install-includeHEADERS tags mostlyclean-tags \ | |
556 | distclean-tags clean-tags maintainer-clean-tags distdir \ | |
557 | mostlyclean-depend distclean-depend clean-depend \ | |
558 | maintainer-clean-depend info-am info dvi-am dvi check check-am \ | |
559 | installcheck-am installcheck install-exec-am install-exec \ | |
560 | install-data-am install-data install-am install uninstall-am uninstall \ | |
561 | all-redirect all-am all installdirs mostlyclean-generic \ | |
562 | distclean-generic clean-generic maintainer-clean-generic clean \ | |
563 | mostlyclean 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 | ||
571 | libt2ngroup_%.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 | |
605 | dist-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: |