]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - Makefile.omk
Update transaction API
[frescor/frsh-include.git] / Makefile.omk
index 9aa9efeec31f427240988465d9ce35ada83cdedf..167e5a62b397e1cf4f5549fad2294a1de72fdb8a 100644 (file)
@@ -1 +1,12 @@
-include_HEADERS = $(notdir $(wildcard $(SOURCES_DIR)/*.h))
+include_HEADERS := $(notdir $(wildcard $(SOURCES_DIR)/*.h))
+
+ifeq ($(CONFIG_FRSH_FORB),y)
+UNWANTED_HEADERS += frsh_opaque_types.h
+endif
+UNWANTED_HEADERS += frsh_configuration_parameters.h
+include_HEADERS := $(filter-out $(UNWANTED_HEADERS),$(include_HEADERS))
+
+default_CONFIG := $(shell grep '^\#define FRSH' $(SOURCES_DIR)/frsh_configuration_parameters.h|sed -e 's/\#define \([^ ]*\) *\(.*\)/\1=\2/' -e 's/ //g' -e 's|//.*||' -e 's|/\*.*\*/||g')
+
+config_include_HEADERS = frsh_configuration_parameters.h
+frsh_configuration_parameters_DEFINES := $(shell echo '$(default_CONFIG)' | sed -e 's/\([^=]*\)=[^ ]*/\1/g')