projects using libt2n-codegen must include the makefile snippet themselves.
[libt2n] / example-codegen / Makefile.am
... / ...
CommitLineData
1# not a GNU package. You can remove this line, if
2# you have all needed files, that a GNU package needs
3AUTOMAKE_OPTIONS = foreign 1.4
4
5INCLUDES = @LIBT2N_CFLAGS@
6LDADD = @LIBT2N_LIBS@
7
8# list your command groups
9CMDGROUPS = default other
10
11# for each command group list the files to parse for LIBT2N_EXPORT
12default_GROUP = default.cpp
13# example of a command group using multiple cpp files
14other_GROUP = other-1.cpp other-2.cpp
15
16# headers declaring data types used as rpc arguments must be listed manually
17# (in this example the class Foo)
18include_HEADERS = foo.hxx
19
20# unfortunately we can't set those from variables
21# because they are parsed by automake
22# and we can't use noinst since our automake version is to old
23# (see dist-hook in codegen.make)
24
25libdefault_la_SOURCES = default_client.cpp
26libother_la_SOURCES = other_client.cpp
27lib_LTLIBRARIES = libdefault.la libother.la
28
29# build an example server and client
30client_SOURCES = client.cpp
31client_LDADD = $(LDADD) libdefault.la libother.la
32
33noinst_PROGRAMS = client server
34
35server_SOURCES = \
36 server.cpp $(other_GROUP) $(default_GROUP) \
37 other_server.cpp default_server.cpp
38
39# test script
40
41TESTS = test
42
43EXTRA_DIST = $(TESTS) configure.in
44
45# if you use libt2n-codegen you should add this
46# (i did not find a nice way to let libt2n install this makefile snippet
47# and let projects using libt2n use the installed version.
48# the core of the problem is:
49# the makefile snippet is already needed when automake is run
50# => no way to let configure locate the snippet)
51include codegen.make