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