Commit 76994827 authored by Ben Avison's avatar Ben Avison Committed by ROOL
Browse files

Adapt to different `C_EXP_HDR` settings

An upcoming change to BuildSys adjusts the default setting of `C_EXP_HDR` so
that it doesn't include a trailing `.h` for native builds. Since we use the
value of this variable in one of our rules, adapt accordingly (note that this
implementation will work with both old and new BuildSys).

Version 1.31. Not tagged
parent 4fe3bcbc
......@@ -5,17 +5,17 @@
*/
#define Module_MajorVersion_CMHG 1.31
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 Jul 2020
#define Module_Date_CMHG 19 Jun 2021
#define Module_MajorVersion "1.31"
#define Module_Version 131
#define Module_MinorVersion ""
#define Module_Date "04 Jul 2020"
#define Module_Date "19 Jun 2021"
#define Module_ApplicationDate "04-Jul-20"
#define Module_ApplicationDate "19-Jun-21"
#define Module_ComponentName "USBDriver"
#define Module_FullVersion "1.31"
#define Module_HelpVersion "1.31 (04 Jul 2020)"
#define Module_HelpVersion "1.31 (19 Jun 2021)"
#define Module_LibraryVersionInfo "1:31"
......@@ -88,9 +88,9 @@ export_hdrs: h.${CMHGFILE} ^.dev.usb.h.usbdevs
${CP} ^.dev.usb.h.usbdevs ${EXPLIBDIR}.dev.usb.h.usbdevs ${CPFLAGS}
# Equivalent of ASMHDRS and ASMCHDRS and CMHGAUTOHDR
${CP} Hdr.USBDriver ${EXP_HDR}.USBDriver ${CPFLAGS}
${HDR2H} Hdr.USBDriver ${C_EXP_HDR}.USBDriver
${HDR2H} Hdr.USBDriver ${C_EXP_HDR:.h=}.h.USBDriver
${DO} ${AWK} -- "/.ifndef ${CMHGFILE_SWIPREFIX}/,/endif/" h.${CMHGFILE} > o._h_USBDriver
${FAPPEND} ${C_EXP_HDR}.USBDriver ${C_EXP_HDR}.USBDriver o._h_USBDriver
${FAPPEND} ${C_EXP_HDR:.h=}.h.USBDriver ${C_EXP_HDR:.h=}.h.USBDriver o._h_USBDriver
@${ECHO} ${COMPONENT}: header export complete
export_libs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment