]> rtime.felk.cvut.cz Git - frescor/forb.git/blob - tests-idl/Makefile.omk
forbrun: Support --serverid command line switch
[frescor/forb.git] / tests-idl / Makefile.omk
1 #SUBDIRS = $(ALL_OMK_SUBDIRS)
2
3 USER_IDLS += $(notdir $(wildcard $(SOURCES_DIR)/*.idl))
4
5 library-pass_HOOKS = $(foreach idl,$(USER_IDLS),$(idl:%.idl=%.h))
6
7 lib_LIBRARIES = forb-idl-tests
8 # Test whether are the generated files compilable
9 forb-idl-tests_GEN_SOURCES = $(addsuffix -skels.c,$(basename $(USER_IDLS))) \
10                              $(addsuffix -stubs.c,$(basename $(USER_IDLS))) \
11                              $(addsuffix -common.c,$(basename $(USER_IDLS)))
12
13 test_PROGRAMS += example_server
14 INCLUDES += -I$(USER_OBJS_DIR)
15 example_server_SOURCES = example_server.c
16 example_server_LIBS = fosa pthread rt forb ulut
17 example_server_SERVER_IDL = myinterface.idl
18
19 test_PROGRAMS += example_client
20 INCLUDES += -I$(USER_OBJS_DIR)
21 example_client_SOURCES = example_client.c
22 example_client_LIBS = fosa pthread rt forb ulut
23 example_client_CLIENT_IDL = myinterface.idl