Commit | Line | Data |
---|---|---|
2c2d29e1 JT |
1 | # not a GNU package. You can remove this line, if |
2 | # have all needed files, that a GNU package needs | |
3 | AUTOMAKE_OPTIONS = foreign 1.4 | |
4 | ||
86c3b9ab | 5 | INCLUDES = @LIBT2N_CFLAGS@ |
44a58add | 6 | LDADD = @LIBT2N_LIBS@ |
86c1c2e9 | 7 | |
6e27f586 | 8 | # list your command groups |
1f5e9bde JT |
9 | CMDGROUPS = default other |
10 | ||
6e27f586 | 11 | # for each command group list the files to parse for LIBT2N_EXPORT |
c5e54ff2 | 12 | default_GROUP = default.cpp |
6e27f586 | 13 | # example of a command group using multiple cpp files |
c5e54ff2 JT |
14 | other_GROUP = other-1.cpp other-2.cpp |
15 | ||
1e683bb5 JT |
16 | # headers declaring data types used as rpc arguments must be listed manually |
17 | # (in this example the class Foo) | |
3c4dd222 JT |
18 | include_HEADERS = foo.hxx |
19 | ||
0cfa3fb2 JT |
20 | # unfortunately we can't set those from variables |
21 | # because they are parsed by automake | |
84b484fa JT |
22 | # and we can't use noinst since our automake version is to old |
23 | # (see dist-hook in codegen.make) | |
0cfa3fb2 | 24 | |
a96ab628 JT |
25 | libdefault_la_SOURCES = default_client.cpp |
26 | libother_la_SOURCES = other_client.cpp | |
3c4dd222 JT |
27 | lib_LTLIBRARIES = libdefault.la libother.la |
28 | ||
3c4dd222 | 29 | # build an example server and client |
86c1c2e9 | 30 | client_SOURCES = client.cpp |
a96ab628 | 31 | client_LDADD = $(LDADD) libdefault.la libother.la |
6e27f586 | 32 | |
86c1c2e9 JT |
33 | noinst_PROGRAMS = client server |
34 | ||
84b484fa JT |
35 | server_SOURCES = \ |
36 | server.cpp $(other_GROUP) $(default_GROUP) \ | |
37 | other_server.cpp default_server.cpp | |
38 | ||
3c4dd222 JT |
39 | # test script |
40 | ||
41 | TESTS = test | |
1f5e9bde | 42 | |
5a7380a0 JT |
43 | EXTRA_DIST = $(TESTS) configure.in |
44 | ||
45 | # we have got an old automake version (1.4-p5) which doesn't support nodist_ | |
46 | # => you might want to use the dist-hook to remove generated files | |
47 | dist-hook: | |
2c2d29e1 | 48 | rm -vf $(foreach i, $(LIBT2N_CODEGEN_BUILT), $(distdir)/$(i)) |
5a7380a0 | 49 | |
2c2d29e1 | 50 | # if you use libt2n-codegen you should add this |
5a7380a0 | 51 | @LIBT2N_CODEGEN_MAKESNIPPET@ |
2c2d29e1 JT |
52 | |
53 | CLEANFILES = $(LIBT2N_SUGGESTED_CLEANFILES) | |
54 |