-INSTALL_MD_GEN_INC_FILES = $(addprefix $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR)/, $(INSTALL_MD_GEN_LIST))
-INSTALL_MD_LCL_FILES = $(addprefix $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR)/, $(INSTALL_MD_LCL_LIST))
-INSTALL_MD_GEN_LCL_FILES = $(addprefix $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR)/, $(INSTALL_MD_LCL_GEN_LIST))
-
-$(INSTALL_MD_INC_FILES) $(INSTALL_MD_GEN_INC_FILES): $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR); \
- filename=`$(BASENAME) $<`; \
- filename_strip=$(addsuffix .strip,$${filename}); \
- $(RM) $(RMFLAGS) $@; \
- $(MKDIR) ./incdir; \
- echo garbage > ./incdir/$${filename_strip}; \
- $(UNIFDEF) -UKERNEL_PRIVATE -UDRIVER_PRIVATE \
- $< > ./incdir/$${filename} || \
- $(DECOMMENT) ./incdir/$${filename} r > \
- ./incdir/$${filename_strip}; \
- if [ -s ./incdir/$${filename_strip} ]; \
- then ( \
- install $(INSTALL_FLAGS) ./incdir/$${filename} $(dir $@);\
- ); \
- else \
- echo Header file $< not exported; \
- fi; \
- $(RM) -rf ./incdir;
-
-$(INSTALL_MD_LCL_FILES) $(INSTALL_MD_GEN_LCL_FILES): $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR); \
- $(RM) $(RMFLAGS) $@; \
- install $(INSTALL_FLAGS) $< $(dir $@);
-
-setup_installhdrs_mi:
- @echo "[ $(SOURCE) ] make setup_installhdrs_mi $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-do_installhdrs_mi: $(INSTALL_MI_INC_FILES) $(INSTALL_MI_GEN_INC_FILES) $(INSTALL_MI_LCL_FILES) $(INSTALL_MI_GEN_LCL_FILES)
- @echo "[ $(SOURCE) ] make do_installhdrs_mi $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-setup_installhdrs_md:
- @echo "[ $(SOURCE) ] make setup_installhdrs_md $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-do_installhdrs_md: $(INSTALL_MD_INC_FILES) $(INSTALL_MD_GEN_INC_FILES) $(INSTALL_MD_LCL_FILES) $(INSTALL_MD_GEN_LCL_FILES)
- @echo "[ $(SOURCE) ] make do_installhdrs_md $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-else
-
-INSTALL_MI_INC_FILES = $(addprefix $(SOURCE), $(INSTALL_MI_LIST))
-INSTALL_MI_GEN_INC_FILES = $(addprefix $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR)/, $(INSTALL_MI_GEN_LIST))
-
-INSTALL_MI_LCL_FILES = $(addprefix $(SOURCE), $(INSTALL_MI_LCL_LIST))
-INSTALL_MI_GEN_LCL_FILES = $(addprefix $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR)/, $(INSTALL_MI_LCL_GEN_LIST))
-
-
-$(INSTALL_MI_GEN_INC_FILES): $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR); \
- filename=`$(BASENAME) $<`; \
- filename_strip=$(addsuffix .strip,$${filename}); \
- $(RM) $(RMFLAGS) $@; \
- $(MKDIR) ./incdir; \
- echo garbage > ./incdir/$${filename_strip}; \
- $(UNIFDEF) -UKERNEL_PRIVATE -UDRIVER_PRIVATE \
- $< > ./incdir/$${filename} || \
- $(DECOMMENT) ./incdir/$${filename} r > \
- ./incdir/$${filename_strip}; \
- if [ -s ./incdir/$${filename_strip} ]; \
- then ( \
- install $(INSTALL_FLAGS) ./incdir/$${filename} $(dir $@);\
- ); \
- else \
- echo Header file $< not exported; \
- fi; \
- $(RM) -rf ./incdir;
-
-$(INSTALL_MI_GEN_LCL_FILES): $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR); \
- $(RM) $(RMFLAGS) $@; \
- install $(INSTALL_FLAGS) $< $(dir $@);
-
-INSTALL_MD_INC_FILES = $(addprefix $(SOURCE), $(INSTALL_MD_LIST))
-INSTALL_MD_GEN_INC_FILES = $(addprefix $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR)/, $(INSTALL_MD_GEN_LIST))
-
-INSTALL_MD_LCL_FILES = $(addprefix $(SOURCE), $(INSTALL_MD_LCL_LIST))
-INSTALL_MD_GEN_LCL_FILES = $(addprefix $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR)/, $(INSTALL_MD_LCL_GEN_LIST))
-
-$(INSTALL_MD_GEN_INC_FILES): $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR); \
- filename=`$(BASENAME) $<`; \
- filename_strip=$(addsuffix .strip,$${filename}); \
- $(RM) $(RMFLAGS) $@; \
- $(MKDIR) ./incdir; \
- echo garbage > ./incdir/$${filename_strip}; \
- $(UNIFDEF) -UKERNEL_PRIVATE -UDRIVER_PRIVATE \
- $< > ./incdir/$${filename} || \
- $(DECOMMENT) ./incdir/$${filename} r > \
- ./incdir/$${filename_strip}; \
- if [ -s ./incdir/$${filename_strip} ]; \
- then ( \
- install $(INSTALL_FLAGS) ./incdir/$${filename} $(dir $@);\
- ); \
- else \
- echo Header file $< not exported; \
- fi; \
- $(RM) -rf /incdir;
-
-$(INSTALL_MD_GEN_LCL_FILES): $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR)/% : %
- @true echo Installing $< in $(dir $@); \
- $(MKDIR) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR); \
- $(RM) $(RMFLAGS) $@; \
- install $(INSTALL_FLAGS) $< $(dir $@);
-
-setup_installhdrs_mi:
- @echo "[ $(SOURCE) ] make setup_installhdrs_mi $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-do_installhdrs_mi: $(INSTALL_MI_GEN_INC_FILES) $(INSTALL_MI_GEN_LCL_FILES)
- @echo "[ $(SOURCE) ] make do_installhdrs_mi $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
- @if [ -n "$(strip $(INSTALL_MI_LIST))" ]; then \
- if [ -d $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR) ]; then \
- (cd $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR);$(RM) $(RMFLAGS) $(INSTALL_MI_LIST) ); \
- else \
- $(MKDIR) $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR); \
- fi; \
- $(MKDIR) ./incdir; \
- for j in $(INSTALL_MI_LIST); \
- do \
- echo garbage > ./incdir/$$j.strip; \
- $(UNIFDEF) -UKERNEL_PRIVATE -UDRIVER_PRIVATE \
- $(SOURCE)/$$j > ./incdir/$$j || \
- $(DECOMMENT) ./incdir/$$j r > \
- ./incdir/$$j.strip; \
- if [ -s ./incdir/$$j.strip ]; \
- then ( \
- install $(INSTALL_FLAGS) ./incdir/$$j $(DSTROOT)/$(INCDIR)/$(INSTALL_MI_DIR); \
- ); \
- else \
- echo Header file $$j not exported; \
- fi; \
- done; \
- $(RM) -rf ./incdir; \
- fi
- @if [ -n "$(strip $(INSTALL_MI_LCL_LIST))" ]; then \
- if [ -d $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR) ]; then \
- (cd $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR);$(RM) $(RMFLAGS) $(INSTALL_MI_LCL_LIST) ); \
- else \
- $(MKDIR) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR); \
- fi; \
- install $(INSTALL_FLAGS) $(INSTALL_MI_LCL_FILES) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MI_DIR); \
- fi
-
-setup_installhdrs_md:
- @echo "[ $(SOURCE) ] make setup_installhdrs_md $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
-
-do_installhdrs_md: $(INSTALL_MD_GEN_INC_FILES) $(INSTALL_MD_GEN_LCL_FILES)
- @echo "[ $(SOURCE) ] make do_installhdrs_md $(KERNEL_CONFIG) $(ARCH_CONFIG) $(TARGET)"
- @if [ -n "$(strip $(INSTALL_MD_LIST))" ]; then \
- if [ -d $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR) ]; then \
- (cd $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR);$(RM) $(RMFLAGS) $(INSTALL_MD_LIST) ); \
- else \
- $(MKDIR) $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR); \
- fi; \
- $(MKDIR) ./incdir; \
- for j in $(INSTALL_MD_LIST); \
- do \
- echo garbage > ./incdir/$$j.strip; \
- $(UNIFDEF) -UKERNEL_PRIVATE -UDRIVER_PRIVATE \
- $(SOURCE)/$$j > ./incdir/$$j || \
- $(DECOMMENT) ./incdir/$$j r > \
- ./incdir/$$j.strip; \
- if [ -s ./incdir/$$j.strip ]; \
- then ( \
- install $(INSTALL_FLAGS) ./incdir/$$j $(DSTROOT)/$(INCDIR)/$(INSTALL_MD_DIR); \
- ); \
- else \
- echo Header file $$j not exported; \
- fi; \
- done; \
- $(RM) -rf ./incdir; \
- fi
- @if [ -n "$(strip $(INSTALL_MD_LCL_LIST))" ]; then \
- if [ -d $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR) ]; then \
- (cd $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR);$(RM) $(RMFLAGS) $(INSTALL_MD_LCL_LIST) ); \
- else \
- $(MKDIR) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR); \
- fi; \
- install $(INSTALL_FLAGS) $(INSTALL_MD_LCL_FILES) $(DSTROOT)/$(LCLDIR)/$(INSTALL_MD_DIR); \
- fi