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