Have separate dbd file without scalcout support (by Martin Konrad)
This commit is contained in:
34
src/Makefile
34
src/Makefile
@ -35,6 +35,10 @@ endif
|
|||||||
LIBRARY_DEFAULT = stream
|
LIBRARY_DEFAULT = stream
|
||||||
|
|
||||||
DBD += $(LIBRARY_DEFAULT).dbd
|
DBD += $(LIBRARY_DEFAULT).dbd
|
||||||
|
DBD += $(LIBRARY_DEFAULT)-base.dbd
|
||||||
|
ifdef CALC
|
||||||
|
DBD += $(LIBRARY_DEFAULT)-scalcout.dbd
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef ASYN
|
ifdef ASYN
|
||||||
LIB_LIBS += asyn
|
LIB_LIBS += asyn
|
||||||
@ -84,9 +88,29 @@ streamReferences: ../CONFIG_STREAM
|
|||||||
$(PERL) ../makeref.pl Interface $(BUSSES) > $@
|
$(PERL) ../makeref.pl Interface $(BUSSES) > $@
|
||||||
$(PERL) ../makeref.pl Converter $(FORMATS) >> $@
|
$(PERL) ../makeref.pl Converter $(FORMATS) >> $@
|
||||||
|
|
||||||
# create stream.dbd from all RECORDTYPES
|
# create stream-base.dbd from all RECORDTYPES except scalcout record
|
||||||
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT)-base.dbd: ../CONFIG_STREAM
|
||||||
$(PERL) ../makedbd.pl $(if $(ASYN),--with-asyn) $(if $(BASE_3_14),,-3.13) $(RECORDTYPES) > $@
|
$(PERL) ../makedbd.pl $(if $(ASYN),--with-asyn) $(if $(BASE_3_14),,-3.13) $(filter-out scalcout, $(RECORDTYPES)) > $@
|
||||||
|
|
||||||
$(LIBRARY_DEFAULT).dbd$(DEP): ../CONFIG_STREAM
|
$(LIBRARY_DEFAULT)-base.dbd$(DEP): ../CONFIG_STREAM
|
||||||
echo $(LIBRARY_DEFAULT).dbd: $< > $@
|
echo $(LIBRARY_DEFAULT)-base.dbd: $< > $@
|
||||||
|
|
||||||
|
STREAM_DBD_FILES = $(LIBRARY_DEFAULT)-base.dbd
|
||||||
|
|
||||||
|
ifdef CALC
|
||||||
|
# create stream-scalcout.dbd for scalcout record
|
||||||
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT)-scalcout.dbd: ../CONFIG_STREAM
|
||||||
|
$(PERL) ../makedbd.pl $(if $(ASYN),--with-asyn) $(if $(BASE_3_14),,-3.13) scalcout > $@
|
||||||
|
|
||||||
|
$(LIBRARY_DEFAULT)-scalcout.dbd$(DEP): ../CONFIG_STREAM
|
||||||
|
echo $(LIBRARY_DEFAULT)-scalcout.dbd: $< > $@
|
||||||
|
|
||||||
|
STREAM_DBD_FILES += $(LIBRARY_DEFAULT)-scalcout.dbd
|
||||||
|
endif
|
||||||
|
|
||||||
|
# create stream.dbd for all record types
|
||||||
|
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: $(addprefix $(COMMON_DIR)/, $(STREAM_DBD_FILES))
|
||||||
|
cat $? > $@
|
||||||
|
|
||||||
|
$(LIBRARY_DEFAULT).dbd$(DEP):
|
||||||
|
echo "$(LIBRARY_DEFAULT).dbd: $(STREAM_DBD_FILES)" > $@
|
||||||
|
Reference in New Issue
Block a user