Commit | Line | Data |
---|---|---|
208db683 JT |
1 | # not a GNU package. You can remove this line, if |
2 | # you have all needed files, that a GNU package needs | |
3 | AUTOMAKE_OPTIONS = foreign | |
4 | ||
5 | INCLUDES = @LIBT2N_CFLAGS@ | |
6 | LDADD = @LIBT2N_LIBS@ | |
7 | ||
8 | # list your command groups | |
9 | CMDGROUPS = default other | |
10 | ||
11 | # for each command group list the files to parse for LIBT2N_EXPORT | |
12 | default_GROUP = default.cpp | |
13 | # example of a command group using multiple cpp files | |
14 | other_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) | |
18 | include_HEADERS = foo.hxx | |
19 | ||
20 | # unfortunately we can't set those from variables | |
21 | # because they are parsed by automake | |
22 | ||
23 | # we would like to use nodist_ here but our automake is to old | |
24 | # nodist_libdefault_la_SOURCES = default_client.cpp | |
25 | # nodist_libother_la_SOURCES = other_client.cpp | |
26 | ||
27 | # using objects as workaround for missing nodist_ didn't work | |
28 | # libdefault_la_OBJECTS += default_client.lo | |
29 | # libother_la_OBJECTS += other_client.lo | |
30 | # Note: the library name must match the group name | |
31 | ||
32 | libdefault_la_SOURCES = default_client.cpp | |
33 | libother_la_SOURCES = other_client.cpp | |
34 | lib_LTLIBRARIES = libdefault.la libother.la | |
35 | ||
36 | # build an example server and client | |
37 | client_SOURCES = client.cpp | |
38 | client_LDADD = $(LDADD) libdefault.la libother.la | |
39 | ||
40 | noinst_PROGRAMS = client | |
41 | ||
42 | bin_PROGRAMS = libt2n-example2-server | |
43 | ||
44 | # we would like to use nodist_ here but our automake is to old | |
45 | # nodist_server_SOURCES = other_server.cpp default_server.cpp | |
46 | # using LDADD as workaround didn't work | |
47 | # server_LDADD = $(LDADD) other_server.$(OBJEXT) default_server.$(OBJEXT) | |
48 | ||
49 | libt2n_example2_server_SOURCES = \ | |
50 | server.cpp $(other_GROUP) $(default_GROUP) \ | |
51 | other_server.cpp default_server.cpp | |
52 | ||
53 | # test script | |
54 | ||
55 | TESTS = test | |
56 | ||
57 | EXTRA_DIST = $(TESTS) | |
58 | ||
58f452c4 TJ |
59 | # Make libt2n-gccxml.sh available |
60 | # as libt2n is not installed yet | |
61 | PATH := $(top_srcdir):$(PATH) | |
62 | ||
208db683 JT |
63 | # if you use libt2n-codegen you should add this |
64 | # (i did not find a nice way to let libt2n install this makefile snippet | |
65 | # and let projects using libt2n use the installed version. | |
66 | # the core of the problem is: | |
67 | # the makefile snippet is already needed when automake is run | |
68 | # => no way to let configure locate the snippet) | |
69 | include codegen.make |