fake installed libt2n for example-codegen
[libt2n] / example-codegen / Makefile.am
... / ...
CommitLineData
1# todo: remove codegen include path (codegen-stubhead.hxx will be removed)
2INCLUDES = @LIBT2N_CPPFLAGS@
3LDADD = @LIBT2N_LIBS@
4
5# list your command groups
6CMDGROUPS = default other
7
8# for each command group list the files to parse for LIBT2N_EXPORT
9default_GROUP = default.cpp
10# example of a command group using multiple cpp files
11other_GROUP = other-1.cpp other-2.cpp
12
13# headers declaring data types used as rpc arguments must be listed manually
14# (in this example the class Foo)
15include_HEADERS = foo.hxx
16
17# unfortunately we can't set those from variables
18# because they are parsed by automake
19# and we can't use noinst since our automake version is to old
20# (see dist-hook in codegen.make)
21
22libdefault_la_SOURCES = default_client.cpp
23libother_la_SOURCES = other_client.cpp
24lib_LTLIBRARIES = libdefault.la libother.la
25
26# build an example server and client
27client_SOURCES = client.cpp
28client_LDADD = $(LDADD) libdefault.la libother.la
29
30noinst_PROGRAMS = client server
31
32server_SOURCES = \
33 server.cpp $(other_GROUP) $(default_GROUP) \
34 other_server.cpp default_server.cpp
35
36# test script
37
38TESTS = test
39
40EXTRA_DIST = $(TESTS)
41
42include @LIBT2N_CODEGEN_MAKESNIPPET@