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