Skip to content

Commit

Permalink
ow-build: correct version resource build make file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed May 4, 2024
1 parent 6db9551 commit 9e6f7a5
Showing 1 changed file with 19 additions and 147 deletions.
166 changes: 19 additions & 147 deletions build/mif/ntverrc.mif
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Generate dllver.res and/or exever.res

!ifeq host_os nt

# Default names and values

!ifndef verrc_dll_skel
verrc_dll_skel = ../dllver.rc
!endif

!ifndef verrc_dll_int
verrc_dll_int = dllver.grc
!ifndef verrc_dll_dep
verrc_dll_dep = dllver.grc
!endif

!ifndef verrc_dll_out
Expand All @@ -22,8 +24,8 @@ verrc_dll = $(proj_name)
verrc_exe_skel = ../exever.rc
!endif

!ifndef verrc_exe_int
verrc_exe_int = exever.grc
!ifndef verrc_exe_dep
verrc_exe_dep = exever.grc
!endif

!ifndef verrc_exe_out
Expand All @@ -34,126 +36,29 @@ verrc_exe_out = exever.res
verrc_exe = $(proj_name)
!endif

!ifndef verrc386_exe_skel
verrc386_exe_skel = ../ver386.rc
!endif

!ifndef verrc386_exe_int
verrc386_exe_int = ver386.grc
!endif

!ifndef verrc386_exe_out
verrc386_exe_out = ver386.res
!endif

!ifndef verrc386_exe
verrc386_exe = $(proj_name)386
!endif

!ifndef verrcx64_exe_skel
verrcx64_exe_skel = ../verx64.rc
!endif

!ifndef verrcx64_exe_int
verrcx64_exe_int = verx64.grc
!endif

!ifndef verrcx64_exe_out
verrcx64_exe_out = verx64.res
!endif

!ifndef verrcx64_exe
verrcx64_exe = $(proj_name)x64
!endif

!ifndef verrcaxp_exe_skel
verrcaxp_exe_skel = ../veraxp.rc
!endif

!ifndef verrcaxp_exe_int
verrcaxp_exe_int = veraxp.grc
!endif

!ifndef verrcaxp_exe_out
verrcaxp_exe_out = veraxp.res
!endif

!ifndef verrcaxp_exe
verrcaxp_exe = $(proj_name)axp
!endif

!ifndef verrcmps_exe_skel
verrcmps_exe_skel = ../vermps.rc
!endif

!ifndef verrcmps_exe_int
verrcmps_exe_int = vermps.grc
!endif

!ifndef verrcmps_exe_out
verrcmps_exe_out = vermps.res
!endif

!ifndef verrcmps_exe
verrcmps_exe = $(proj_name)mps
!endif

!ifndef verrcppc_exe_skel
verrcppc_exe_skel = ../verppc.rc
!endif

!ifndef verrcppc_exe_int
verrcppc_exe_int = verppc.grc
!endif

!ifndef verrcppc_exe_out
verrcppc_exe_out = verppc.res
!endif

!ifndef verrcppc_exe
verrcppc_exe = $(proj_name)ppc
!endif

!ifndef patch_level
patch_level = 0
!endif

verrc_inc_path = $(extra_verrc_inc_path) $(inc_dirs_sys) -I"$(watcom_dir)/h"

$(verrc_exe_out): $(verrc_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrc_exe_int) $$ $(verrc_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrc_exe_int) -fo=$@

$(verrc386_exe_out): $(verrc386_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrc386_exe_int) $$ $(verrc386_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrc386_exe_int) -fo=$@

$(verrcx64_exe_out): $(verrcx64_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrcx64_exe_int) $$ $(verrcx64_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrcx64_exe_int) -fo=$@
$(verrc_exe_dep): $(verrc_exe_skel) .EXPLICIT
@%make echo_genverrc
$(noecho)genverrc $]@ $@ $$ $(verrc_exe) $(patch_level)

$(verrcaxp_exe_out): $(verrcaxp_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrcaxp_exe_int) $$ $(verrcaxp_exe) $(patch_level)
$(verrc_exe_out): $(verrc_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrc_exe_dep) $$ $(verrc_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrcaxp_exe_int) -fo=$@
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrc_exe_dep) -fo=$@

$(verrcmps_exe_out): $(verrcmps_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrcmps_exe_int) $$ $(verrcmps_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrcmps_exe_int) -fo=$@

$(verrcppc_exe_out): $(verrcppc_exe_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrcppc_exe_int) $$ $(verrcppc_exe) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrcppc_exe_int) -fo=$@
$(verrc_dll_dep): $(verrc_dll_skel) .EXPLICIT
@%make echo_genverrc
$(noecho)genverrc $]@ $@ $$ $(verrc_dll) $(patch_level)

$(verrc_dll_out): $(verrc_dll_skel) .EXPLICIT
$(noecho)genverrc $]@ $(verrc_dll_int) $$ $(verrc_dll) $(patch_level)
$(noecho)genverrc $]@ $(verrc_dll_dep) $$ $(verrc_dll) $(patch_level)
@%make echo_rc
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrc_dll_int) -fo=$@
$(rc) $(ppflags_common) $(rc_cppflags) $(rc_flags) $(verrc_inc_path) $(verrc_dll_dep) -fo=$@

#
# Macros to bind version resource (for PE images)
Expand Down Expand Up @@ -194,42 +99,9 @@ bind_res_add_version_dll: .PROCEDURE .EXPLICIT
@%make bind_res
!endif

bind_res_version386_exe: .PROCEDURE .EXPLICIT
!ifdef version386_res_exe_$(host_os)_$(host_cpu)
echo_genverrc : .PROCEDURE .EXPLICIT
!ifeq verbose 0
@echo bind res $@
!endif
$(rcbind) -q -k $(version386_res_exe_$(host_os)_$(host_cpu)) $@
@echo genverrc $@
!endif

bind_res_versionx64_exe: .PROCEDURE .EXPLICIT
!ifdef versionx64_res_exe_$(host_os)_$(host_cpu)
!ifeq verbose 0
@echo bind res $@
!endif
$(rcbind) -q -k $(versionx64_res_exe_$(host_os)_$(host_cpu)) $@
!endif

bind_res_versionaxp_exe: .PROCEDURE .EXPLICIT
!ifdef versionaxp_res_exe_$(host_os)_$(host_cpu)
!ifeq verbose 0
@echo bind res $@
!endif
$(rcbind) -q -k $(versionaxp_res_exe_$(host_os)_$(host_cpu)) $@
!endif

bind_res_versionmps_exe: .PROCEDURE .EXPLICIT
!ifdef versionmps_res_exe_$(host_os)_$(host_cpu)
!ifeq verbose 0
@echo bind res $@
!endif
$(rcbind) -q -k $(versionmps_res_exe_$(host_os)_$(host_cpu)) $@
!endif

bind_res_versionppc_exe: .PROCEDURE .EXPLICIT
!ifdef versionppc_res_exe_$(host_os)_$(host_cpu)
!ifeq verbose 0
@echo bind res $@
!endif
$(rcbind) -q -k $(versionppc_res_exe_$(host_os)_$(host_cpu)) $@
!endif

0 comments on commit 9e6f7a5

Please sign in to comment.