unfortunately dist-hook only works if directly visible for automake
[libt2n] / example-codegen / Makefile.am
... / ...
CommitLineData
1INCLUDES = @LIBT2N_CPPFLAGS@
2LDADD = @LIBT2N_LIBS@
3
4# list your command groups
5CMDGROUPS = default other
6
7# for each command group list the files to parse for LIBT2N_EXPORT
8default_GROUP = default.cpp
9# example of a command group using multiple cpp files
10other_GROUP = other-1.cpp other-2.cpp
11
12# headers declaring data types used as rpc arguments must be listed manually
13# (in this example the class Foo)
14include_HEADERS = foo.hxx
15
16# unfortunately we can't set those from variables
17# because they are parsed by automake
18# and we can't use noinst since our automake version is to old
19# (see dist-hook in codegen.make)
20
21libdefault_la_SOURCES = default_client.cpp
22libother_la_SOURCES = other_client.cpp
23lib_LTLIBRARIES = libdefault.la libother.la
24
25# build an example server and client
26client_SOURCES = client.cpp
27client_LDADD = $(LDADD) libdefault.la libother.la
28
29noinst_PROGRAMS = client server
30
31server_SOURCES = \
32 server.cpp $(other_GROUP) $(default_GROUP) \
33 other_server.cpp default_server.cpp
34
35# test script
36
37TESTS = test
38
39EXTRA_DIST = $(TESTS) configure.in
40
41# we have got an old automake version (1.4-p5) which doesn't support nodist_
42# => you might want to use the dist-hook to remove generated files
43dist-hook:
44 rm -vf $(foreach i, $(BUILT_SOURCES), $(distdir)/$(i))
45
46# if you use codegen you should add the next line at the end
47@LIBT2N_CODEGEN_MAKESNIPPET@