]> rtime.felk.cvut.cz Git - frescor/forb.git/blob - Makefile.omk
Object key is not the pointer but sequentially generated integer
[frescor/forb.git] / Makefile.omk
1 SUBDIRS = tests-idl tests
2 EXTRA_RULES_SUBDIRS = forb-idl
3
4 CFLAGS += -I.
5
6 IDL_COMPILER += --pidl
7
8 lib_LIBRARIES += forb
9 forb_SOURCES = forb.c cdr.c sha1.c uuid.c iop.c proto.c syncobj.c       \
10                request.c executor.c object.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 renamed_include_HEADERS += \
21         $(call to_forb_subdir, forb.h) \
22         $(call to_forb_subdir, forb-internal.h) \
23         $(call to_forb_subdir, basic_types.h) \
24         $(call to_forb_subdir, cdr.h) \
25         $(call to_forb_subdir, iop.h) \
26         $(call to_forb_subdir, uuid.h) \
27         $(call to_forb_subdir, syncobj.h) \
28         $(call to_forb_subdir, request.h) \
29         $(call to_forb_subdir, executor.h) \
30         $(call to_forb_subdir, object.h) \
31         $(call to_forb_subdir, proto.h)
32
33 renamed_include_GEN_HEADERS = \
34         $(call to_forb_subdir,iop-idl.h) \
35         $(call to_forb_subdir,types.h)
36
37 default_CONFIG = CONFIG_FORB_PROTO_UNIX=y \
38                  CONFIG_FORB_RECV_BUF_SIZE=4096
39
40 config_include_HEADERS = forb/config.h
41 config_DEFINES = CONFIG_FORB_PROTO_UNIX \
42                  CONFIG_FORB_RECV_BUF_SIZE
43
44 include-pass_HOOKS = log_domains.inc #request_gavl.inc
45
46 log_domains.inc:
47         @echo "  UL_LOG  $@"
48         $(Q)$(SOURCES_DIR)/ul_log_domains $(SOURCES_DIR) > $@
49
50 clean-custom:
51         $(Q)rm log_domains.inc
52
53 # request_gavl.inc: $(SOURCES_DIR)/request_gavl.c
54 #       @echo "  CPP     $@"
55 #       $(Q)$(c_o_COMPILE) -o $@.tmp -E $<
56 #       $(Q)tail -n 1 $@.tmp|indent > $@
57