]> rtime.felk.cvut.cz Git - frescor/forb.git/blob - src/Makefile.omk
libforb is now compiled as shared library
[frescor/forb.git] / src / Makefile.omk
1 SUBDIRS = tests
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
11 forb_CLIENT_IDL = types.idl iop-idl.idl
12
13 to_forb_subdir=$(1)->forb/$(strip $(1))
14
15 ifeq ($(CONFIG_FORB_PROTO_UNIX),y)
16 forb_SOURCES += proto_unix.c
17 renamed_include_HEADERS += $(call to_forb_subdir, proto_unix.h) 
18 endif
19
20 include_HEADERS = forb.h
21 renamed_include_HEADERS += \
22         $(call to_forb_subdir, basic_types.h) \
23         $(call to_forb_subdir, cdr.h) \
24         $(call to_forb_subdir, cdr_codec.h) \
25         $(call to_forb_subdir, executor.h) \
26         $(call to_forb_subdir, forb-internal.h) \
27         $(call to_forb_subdir, iop.h) \
28         $(call to_forb_subdir, object.h) \
29         $(call to_forb_subdir, object_type.h) \
30         $(call to_forb_subdir, refcnt.h) \
31         $(call to_forb_subdir, request.h) \
32         $(call to_forb_subdir, syncobj.h) \
33         $(call to_forb_subdir, uuid.h)
34
35 renamed_include_GEN_HEADERS = \
36         $(call to_forb_subdir,iop-idl.h) \
37         $(call to_forb_subdir,types.h)
38
39 default_CONFIG = CONFIG_FORB_PROTO_UNIX=y \
40                  CONFIG_FORB_RECV_BUF_SIZE=4096
41
42 config_include_HEADERS = forb/config.h
43 config_DEFINES = CONFIG_FORB_PROTO_UNIX \
44                  CONFIG_FORB_RECV_BUF_SIZE
45
46 include-pass_HOOKS = log_domains.inc #request_gavl.inc
47
48 log_domains.inc:
49         @echo "  UL_LOG  $@"
50         $(Q)$(SOURCES_DIR)/ul_log_domains $(SOURCES_DIR) > $@
51
52 clean-custom:
53         -$(Q)rm log_domains.inc
54
55 # request_gavl.inc: $(SOURCES_DIR)/request_gavl.c
56 #       @echo "  CPP     $@"
57 #       $(Q)$(c_o_COMPILE) -o $@.tmp -E $<
58 #       $(Q)tail -n 1 $@.tmp|indent > $@
59