# example of a command group using multiple cpp files
other_GROUP = other-1.cpp other-2.cpp
-# foo.hxx must be listed manually
+# headers declaring data types used as rpc arguments must be listed manually
+# (in this example the class Foo)
include_HEADERS = foo.hxx
# unfortunately we can't set those from variables
server_SOURCES = server.cpp \
$(other_GROUP) other_server.cpp \
- $(default_GROUP) default_server.cpp \
- foo.hxx
+ $(default_GROUP) default_server.cpp
noinst_PROGRAMS = client server
TESTS = test
+
+
+
# always the same:
include_HEADERS += $(foreach i, $(CMDGROUPS), $(i)_client.hxx $(i).hxx)
$< >$*.pc
CLEANFILES = $(BUILT_SOURCES) $(STAMPS) $(pkgconfig_DATA)
+
+# didn't work (same problem as with _LTLIBRARIES [parsing by automake],
+# this time _OBJECTS was not correct)
+# server_SOURCES = server.cpp \
+# $(foreach i, $(CMDGROUPS), $(foreach j, $($(i)_GROUP), $(j))) \
+# $(foreach i, $(CMDGROUPS), $(i)_server.cpp)