# -*- makefile -*- # Config file for compilation by OMK for AQuoSA/Linux OS target ifeq ($(RELATIVE_DIR:ffmpeg%=ffmpeg),ffmpeg) # Allow building ffmpeg by OMK define FFMPEG_OMKIZE lib_LIBRARIES:=$(NAME) $(NAME)_SOURCES:=$(OBJS:%.o=%.c) $(OBJS-y:%.o=%.c) $(OBJS-yes:%.o=%.c) renamed_include_HEADERS:=$(foreach h,$(HEADERS),$(h)->lib$(NAME)/$(h) ) INCLUDES += -I $(srcdir)/.. endef $(SOURCES_DIR)/Makefile.omk: $(SOURCES_DIR)/Makefile $(MAKERULES_DIR)/ffmpeg/libswscale @echo " FFOMK $@" $(Q)make DEPS="" -C $(SOURCES_DIR) -qp -f $< |sed -ne '/# Pattern-specific Variable Values/,$$ d' -e '/# makefile/,+1 p'|\ sed -e /^define/d -e "/^#/d" -e "/^MAKE/d" > $@ # echo '$(value FFMPEG_OMKIZE)' >> $@ # There is a bug in make ifeq ($(SOURCES_DIR:%/libavcodec=YES),YES) $(Q)echo 'SUBDIRS=x86' >> $@ endif $(Q)cat $(MAKERULES_DIR)/Makefile.omk.ffmpeg >> $@ $(Q)echo 'CFLAGS := $(CFLAGS) $$(CFLAGS)' >> $@ $(MAKERULES_DIR)/ffmpeg/libavcodec/x86/Makefile: touch $@ $(MAKERULES_DIR)/ffmpeg/libswscale: ln -sf ../../src/libswscale $@ endif # You can override these variables in config.omk AQUOSA_ROOT ?= $(wildcard /usr/local/aquosa) QTDIR ?= $(wildcard /usr/share/qt4) export PLATFORM=AQuoSA # Create symbolic links to headers instead of copying them. Useful # during development. LN_HEADERS=y # We do not want to overwrite original FRESCOR Makefiles USE_LEAF_MAKEFILES=n # For demo, we use FORB's inet protocol, to show how FRESCOR works in a # distributed environment CONFIG_FORB_PROTO_UNIX=n CONFIG_FORB_PROTO_INET_DEFAULT=y CONFIG_AQUOSA=y ######################################## # Setting of compiler ######################################## # This doesn't work since mgcc script eats multiple -M options #CC=mgcc #CFLAGS=-Wall -g -O1 -Wuninitialized -D$(PLATFORM) # Instead, we call normal gcc with parameters which mgcc adds CFLAGS=$(ARCH_GCC_OPTS) -Wall -Wuninitialized -g -O1 -D_REENTRANT -D$(PLATFORM) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE LDFLAGS=$(ARCH_LD_OPTS) $(LIBS_PATH) $(LIBS) LDFLAGS += '-Wl,-rpath,$$ORIGIN/../lib' -z origin --enable-new-dtags IDL_COMPILER = $(OUTPUT_DIR)/$(COMPILED_DIR_NAME)/bin/forb-idl FRSH_DISTRIBUTED_MODULE_SUPPORTED=true # Disable tests which do not compile with FRSH_FORB CONFIG_FRSH_TEST_context_switch=n # Needs timespec_operations.h and frsh_os_compatibility.h CONFIG_FRSH_TEST_demo_september2007=n # Needs frsh_thread_get_vres_id() CONFIG_FRSH_TEST_demo_september2007_with_signals=n # Some problem with signal constants and non-int vres_id CONFIG_FRSH_TEST_dl_test=n # Needs different Makefile.omk CONFIG_FRSH_TEST_example_d-ac1_frescor=n # Needs int vres_id CONFIG_FRSH_TEST_frsh_shared_obj_test=n # Needs eat.h and timespec_operations.h CONFIG_FRSH_TEST_functions=n # Needs timespec_operations.h and frsh_os_compatibility.h CONFIG_FRSH_TEST_jitter_test=n # Needs timespec_operations.h and frsh_os_compatibility.h CONFIG_FRSH_TEST_sharedobj_prototype=n # Needs frsh_sharedobj_XXX CONFIG_FRSH_TEST_test_bind=n # Needs eat.h and timespec_operations.h CONFIG_FRSH_TEST_test_contract_labels=n # Needs eat.h and timespec_operations.h CONFIG_FRSH_TEST_test_eat=n # Needs eat.h CONFIG_FRSH_TEST_test_frsh_performance=n # Needs more frsh api - todo CONFIG_FRSH_TEST_test_frsh_renegotiate_async=n # Needs eat.h and timespec_operations.h CONFIG_FRSH_TEST_test_frsh_synch_obj=n # Needs frsh_thread_id_t to be simple type - Aquosa declares it as structure CONFIG_FRSH_TEST_test_memory=n # Needs different Makefile.omk and then we will see :) CONFIG_FRSH_TEST_demo_sept07_negotiate_and_send=n # Needs RTEP CONFIG_FRSH_TEST_demo_sept07_negotiations_limit=n # Needs RTEP CONFIG_FRSH_TEST_demo_sept07_renegotiate_and_send=n # Needs RTEP CONFIG_FRSH_TEST_test_endpoints=n # Needs RTEP CONFIG_FRSH_TEST_test_frsh_distributed_contract_negotiate=n # Nedds vres_id to be int CONFIG_FRSH_TEST_test_frsh_distributed_contract_renegotiate=n # Needs RTEP CONFIG_FRSH_TEST_test_frsh_distributed_init=n # Needs THE_FRSH_CPU_ID CONFIG_FRSH_TEST_test_frsh_marshal=n # Accesses frsh_contract_t fields directly CONFIG_FRSH_TEST_test_frsh_send_receive_basic=n # Needs RTEP CONFIG_FRSH_TEST_test_get_network_info=n # Needs RTEP CONFIG_FRSH_TEST_test_self_bind=n # Needs eat.h and timespec_operations.h CONFIG_FRSH_TEST_test_sizes=n # Needs frsh_internal.h - TODO CONFIG_FRSH_TEST_test_spare_capacity=n # Needs more frsh api - TODO CONFIG_FRSH_TEST_test_timespec_operations=n # Needs timespec_operations.h CONFIG_FRSH_TEST_test_vres_id_bits=n # Depends on bit-fields in integer vres_id CONFIG_FSA_TESTS=n # Depends on bit-fields in integer vres_id