fix problems with OS dependent headers: 1. find the correct one, 2. install default

This commit is contained in:
2020-06-25 16:26:43 +02:00
parent 0c30c322d0
commit ee90976cd6
+8 -1
View File
@@ -873,7 +873,10 @@ vpath %Record.dbd ${DBD_PATH}
vpath menu%.dbd ${DBD_PATH}
# Find header files to install.
vpath %.h $(addprefix ../,$(sort $(dir $(filter-out /%,${HDRS}) ${SRCS}))) $(sort $(dir $(filter /%,${HDRS})))
# Order is important! First OS dependent, then os default, then others
vpath %.h $(sort $(filter %/os/$(OS_CLASS)/,$(dir ${HDRS})))
vpath %.h $(sort $(filter %/os/default/,$(dir ${HDRS})))
vpath %.h $(sort $(dir ${HDRS} $(filter-out /%,${SRCS})))
PRODUCTS = ${MODULELIB} ${MODULEDBD} ${DEPFILE}
MODULEINFOS:
@@ -984,6 +987,10 @@ ${INSTALL_BINS}: $(addprefix ../,$(filter-out /%,${BINS})) $(filter /%,${BINS})
@echo "Installing binaries $^ to $(@D)"
$(INSTALL) -d -m555 $^ $(@D)
$(INSTALL_INCLUDE)/os/default/% : %
$(ECHO) "Installing os dependent include file $@"
@$(INSTALL) -d -m $(INSTALL_PERMISSIONS) $< $(@D)
# Create SNL code from st/stt file.
# (RULES.Vx only allows ../%.st, 3.14 has no .st rules at all.)
# Important to have %.o: %.st and %.o: %.stt rule before %.o: %.c rule!