| 1 | # not a GNU package. You can remove this line, if you have all needed files, that a GNU package needs |
| 2 | AUTOMAKE_OPTIONS = foreign |
| 3 | |
| 4 | # our dependencies |
| 5 | INCLUDES = @LIBT2N_CFLAGS@ |
| 6 | LDADD = @LIBT2N_LIBS@ |
| 7 | |
| 8 | # list your command groups (seperated by spaces) |
| 9 | CMDGROUPS = t2nexample |
| 10 | |
| 11 | # for each command group list the files to parse for LIBT2N_EXPORT |
| 12 | t2nexample_GROUP = t2nexample.cpp |
| 13 | |
| 14 | # unfortunately we can't set those from variables (because they are parsed by automake) |
| 15 | |
| 16 | # for each group build a client library from generated source file(s) |
| 17 | # (if you have automake >= 1.5 you might wish to use nodist_ here) |
| 18 | # Note: the library name must match the group name |
| 19 | libt2nexample_la_SOURCES = t2nexample_client.cpp |
| 20 | lib_LTLIBRARIES = libt2nexample.la |
| 21 | |
| 22 | # build server program |
| 23 | bin_PROGRAMS = libt2n-example1-server |
| 24 | |
| 25 | # (if you have automake >= 1.5 you might wish to use nodist_ here) |
| 26 | # nodist_server_SOURCES = t2nexample_server.cpp |
| 27 | |
| 28 | libt2n_example1_server_SOURCES = \ |
| 29 | server.cpp $(t2nexample_GROUP) \ |
| 30 | t2nexample_server.cpp |
| 31 | |
| 32 | # Make libt2n-gccxml.sh available |
| 33 | # as libt2n is not installed yet |
| 34 | PATH := $(top_srcdir):$(PATH) |
| 35 | |
| 36 | # include Makefile snippet doing all the magic |
| 37 | include codegen.make |