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