]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - build/config.target
ba998d460dca34b6aff6cbe14270f9dc62586058
[frescor/demo.git] / build / config.target
1 # -*- makefile -*-
2 # Config file for compilation by OMK for AQuoSA/Linux OS target
3
4 ifeq ($(RELATIVE_DIR:ffmpeg%=ffmpeg),ffmpeg)
5 # Allow building ffmpeg by OMK
6 define FFMPEG_OMKIZE
7 lib_LIBRARIES:=$(NAME)
8 $(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c)
9 renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) )
10 INCLUDES += -I $(srcdir)/..
11 endef
12
13 $(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/libswscale
14         @echo "  FFOMK   $@"
15         $(Q)make DEPS="" -C $(SOURCES_DIR) -qp -f $< |sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p'|\
16                         sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@
17 #       echo '$(value FFMPEG_OMKIZE)' >> $@ # There is a bug in make
18         $(Q)echo "FFMPEG_SUBDIR=$(RELATIVE_DIR:ffmpeg/%=%)" >> $@
19         $(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@
20         $(Q)echo 'CFLAGS := $(CFLAGS) $$(CFLAGS)' >> $@
21
22
23 $(MAKERULES_DIR)/ffmpeg/libavcodec/x86/Makefile:
24         touch $@
25
26 $(MAKERULES_DIR)/ffmpeg/libswscale:
27         ln -sf ../../src/libswscale $@
28 endif
29
30
31 # You can override these variables in config.omk
32 AQUOSA_ROOT ?= $(wildcard /usr/local/aquosa)
33 QTDIR ?= $(wildcard /usr/share/qt4)
34
35 export PLATFORM=AQuoSA
36
37 # Create symbolic links to headers instead of copying them. Useful
38 # during development.
39 LN_HEADERS=y
40
41 # We do not want to overwrite original FRESCOR Makefiles
42 USE_LEAF_MAKEFILES=n
43
44 # For demo, we use FORB's inet protocol, to show how FRESCOR works in a
45 # distributed environment
46 CONFIG_FORB_PROTO_UNIX=n
47 CONFIG_FORB_PROTO_INET_DEFAULT=y
48 CONFIG_AQUOSA=y
49
50 ########################################
51 # Setting of compiler
52 ########################################
53
54 # This doesn't work since mgcc script eats multiple -M options
55 #CC=mgcc
56 #CFLAGS=-Wall -g  -O1  -Wuninitialized -D$(PLATFORM)
57
58 # Instead, we call normal gcc with parameters which mgcc adds
59
60 CFLAGS=$(ARCH_GCC_OPTS) -Wall -Wuninitialized -g -O1 $(CFLAGS-y) -D_REENTRANT -D$(PLATFORM) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
61 CFLAGS-$(CONFIG_FFMPEG_WITH_FRSH) = -DCONFIG_FFMPEG_WITH_FRSH=y
62
63 LDFLAGS=$(ARCH_LD_OPTS) $(LIBS_PATH) $(LIBS)
64 LDFLAGS += '-Wl,-rpath,$$ORIGIN/../lib' -z origin --enable-new-dtags
65
66 IDL_COMPILER = $(OUTPUT_DIR)/$(COMPILED_DIR_NAME)/bin/forb-idl
67
68 FRSH_DISTRIBUTED_MODULE_SUPPORTED=true
69
70 # Disable tests which do not compile with FRSH_FORB
71
72 CONFIG_FRSH_TEST_context_switch=n                             # Needs timespec_operations.h and frsh_os_compatibility.h
73 CONFIG_FRSH_TEST_demo_september2007=n                         # Needs frsh_thread_get_vres_id()
74 CONFIG_FRSH_TEST_demo_september2007_with_signals=n            # Some problem with signal constants and non-int vres_id
75 CONFIG_FRSH_TEST_dl_test=n                                    # Needs different Makefile.omk
76 CONFIG_FRSH_TEST_example_d-ac1_frescor=n                      # Needs int vres_id
77 CONFIG_FRSH_TEST_frsh_shared_obj_test=n                       # Needs eat.h and timespec_operations.h
78 CONFIG_FRSH_TEST_functions=n                                  # Needs timespec_operations.h and frsh_os_compatibility.h
79 CONFIG_FRSH_TEST_jitter_test=n                                # Needs timespec_operations.h and frsh_os_compatibility.h
80 CONFIG_FRSH_TEST_sharedobj_prototype=n                        # Needs frsh_sharedobj_XXX
81 CONFIG_FRSH_TEST_test_bind=n                                  # Needs eat.h and timespec_operations.h
82 CONFIG_FRSH_TEST_test_contract_labels=n                       # Needs eat.h and timespec_operations.h
83 CONFIG_FRSH_TEST_test_eat=n                                   # Needs eat.h
84 CONFIG_FRSH_TEST_test_frsh_performance=n                      # Needs more frsh api - todo
85 CONFIG_FRSH_TEST_test_frsh_renegotiate_async=n                # Needs eat.h and timespec_operations.h
86 CONFIG_FRSH_TEST_test_frsh_synch_obj=n                        # Needs frsh_thread_id_t to be simple type - Aquosa declares it as structure
87 CONFIG_FRSH_TEST_test_memory=n                                # Needs different Makefile.omk and then we will see :)
88 CONFIG_FRSH_TEST_demo_sept07_negotiate_and_send=n             # Needs RTEP
89 CONFIG_FRSH_TEST_demo_sept07_negotiations_limit=n             # Needs RTEP
90 CONFIG_FRSH_TEST_demo_sept07_renegotiate_and_send=n           # Needs RTEP
91 CONFIG_FRSH_TEST_test_endpoints=n                             # Needs RTEP
92 CONFIG_FRSH_TEST_test_frsh_distributed_contract_negotiate=n   # Nedds vres_id to be int
93 CONFIG_FRSH_TEST_test_frsh_distributed_contract_renegotiate=n # Needs RTEP
94 CONFIG_FRSH_TEST_test_frsh_distributed_init=n                 # Needs THE_FRSH_CPU_ID
95 CONFIG_FRSH_TEST_test_frsh_marshal=n                          # Accesses frsh_contract_t fields directly
96 CONFIG_FRSH_TEST_test_frsh_send_receive_basic=n               # Needs RTEP
97 CONFIG_FRSH_TEST_test_get_network_info=n                      # Needs RTEP
98 CONFIG_FRSH_TEST_test_self_bind=n                             # Needs eat.h and timespec_operations.h
99 CONFIG_FRSH_TEST_test_sizes=n                                 # Needs frsh_internal.h - TODO
100 CONFIG_FRSH_TEST_test_spare_capacity=n                        # Needs more frsh api - TODO
101 CONFIG_FRSH_TEST_test_timespec_operations=n                   # Needs timespec_operations.h
102 CONFIG_FRSH_TEST_test_vres_id_bits=n                          # Depends on bit-fields in integer vres_id
103 CONFIG_FSA_TESTS=n                                            # Depends on bit-fields in integer vres_id