]> rtime.felk.cvut.cz Git - frescor/forb.git/blob - src/Makefile.omk
forb: First implementation of forbrun
[frescor/forb.git] / src / Makefile.omk
1 SUBDIRS = tests forbrun
2
3 CFLAGS += -I.
4
5 # IDL_COMPILER += --pidl
6
7 shared_LIBRARIES += forb
8 forb_SOURCES = forb.c cdr.c sha1.c uuid.c iop.c proto.c syncobj.c       \
9                request.c executor.c object.c peer.c port.c refcnt.c     \
10                exec_req.c regref.c discovery.c daemon.c
11 forb_CLIENT_IDL = types.idl iop-idl.idl forb-idl.idl
12 forb_SERVER_IDL = forb-idl.idl
13
14 to_forb_subdir=$(1)->forb/$(strip $(1))
15
16 ifeq ($(CONFIG_FORB_PROTO_UNIX),y)
17 forb_SOURCES += proto_unix.c
18 renamed_include_HEADERS += $(call to_forb_subdir, proto_unix.h) 
19 endif
20
21 # TODO: proto_inet should be a separate library as it should be used
22 # only by FCB
23 forb_SOURCES += proto_inet.c
24 renamed_include_HEADERS += $(call to_forb_subdir, proto_inet.h) 
25
26
27 include_HEADERS = forb.h
28 renamed_include_HEADERS += \
29         $(call to_forb_subdir, basic_types.h) \
30         $(call to_forb_subdir, cdr.h) \
31         $(call to_forb_subdir, cdr_codec.h) \
32         $(call to_forb_subdir, executor.h) \
33         $(call to_forb_subdir, exec_req.h) \
34         $(call to_forb_subdir, forb-internal.h) \
35         $(call to_forb_subdir, iop.h) \
36         $(call to_forb_subdir, object.h) \
37         $(call to_forb_subdir, object_type.h) \
38         $(call to_forb_subdir, port.h) \
39         $(call to_forb_subdir, refcnt.h) \
40         $(call to_forb_subdir, request.h) \
41         $(call to_forb_subdir, syncobj.h) \
42         $(call to_forb_subdir, server_id.h) \
43         $(call to_forb_subdir, peer.h) \
44         $(call to_forb_subdir, uuid.h)
45
46 renamed_include_GEN_HEADERS = \
47         $(call to_forb_subdir,forb-idl.h) \
48         $(call to_forb_subdir,iop-idl.h) \
49         $(call to_forb_subdir,types.h)
50
51 default_CONFIG = CONFIG_FORB_PROTO_UNIX=y \
52                  CONFIG_FORB_RECV_BUF_SIZE=4096 \
53                  CONFIG_FORB_PROTO_INET_DEFAULT=n
54
55 config_include_HEADERS = forb/config.h
56 config_DEFINES = CONFIG_FORB_PROTO_UNIX \
57                  CONFIG_FORB_RECV_BUF_SIZE \
58                  CONFIG_FORB_PROTO_INET_DEFAULT \
59                  CONFIG_FCB     # To see whether we are compiled with FRSH_FORB
60
61 include-pass_HOOKS = log_domains.inc #request_gavl.inc
62
63 log_domains.inc: $(addprefix $(SOURCES_DIR)/,ul_log_domains $(forb_SOURCES))
64         @echo "  UL_LOG  $@"
65         $(Q)$(SOURCES_DIR)/ul_log_domains --array forb_logreg_domains_array \
66                 $(SOURCES_DIR) > $@
67
68 clean-custom:
69         -$(Q)rm log_domains.inc
70
71 # request_gavl.inc: $(SOURCES_DIR)/request_gavl.c
72 #       @echo "  CPP     $@"
73 #       $(Q)$(c_o_COMPILE) -o $@.tmp -E $<
74 #       $(Q)tail -n 1 $@.tmp|indent > $@
75