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