Skip to content

Commit

Permalink
ow-build: correct build make files for qnx target
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Jun 9, 2024
1 parent 0d868e5 commit fb47d32
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 76 deletions.
8 changes: 3 additions & 5 deletions bld/as/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,13 @@ $(asi_lex_out).c : scani_in.re $(__MAKEFILES__)
$(noecho)re2c $(lex_flags) $[@ > $@

# optencod options and targets for various hosts
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
#optencod_enc_linux = -utf8

optencod_targets = $(target_cpu) $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

cmdlnprs.gh cmdlnprs.gc usage.gh $(exetarg_$(host_os)_res) : ../../h/options.gml $(__MAKEFILES__)
cmdlnprs.gh cmdlnprs.gc usage.gh : ../../h/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc usage.gh . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc usage.gh . $(optencod_targets)
6 changes: 3 additions & 3 deletions bld/bdiff/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ rc_inc_dirs = -I..

ppusage.gh : ../gml/optionsp.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .

pdusage.gh : ../gml/optionsu.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .

dusage.gh : ../gml/optionsi.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ .

bpatch.res : ../h/bpatch.rc ../h/bpatch.h ppusage.gh
@%make echo_rc
Expand Down
11 changes: 5 additions & 6 deletions bld/cc/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ cc_autodepends = .AUTODEPEND

cc_ntverrc = ..

cc_qnx_usage = 1

#
# names
#
Expand Down Expand Up @@ -144,7 +146,6 @@ exetarg_prebuild_objs = $(prebuild_objs)
exetarg_objs = $(comp_objs_exe)
exetarg_libs = $(cli_asminline_libs) $(cli_cg_libs)
!endif
exetarg_qnx_res = usage.u
exetarg_name = $(exetarg_name)
!include exetarg.mif

Expand Down Expand Up @@ -217,15 +218,13 @@ weights.gh keywords.gh : $(key_objs)
$(noecho)findhash -q -e ",OPR_NOP,-1" $(key_objs)

# optencod options and targets for various hosts
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
#optencod_enc_linux = -utf8

optencod_targets = $(target_cpu) $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

cmdlnprs.gh cmdlnprs.gc usage.gh usage01.int $(exetarg_$(host_os)_res): ../../gml/options.gml
cmdlnprs.gh cmdlnprs.gc usage.gh usage01.int $(qnx_usage): ../../gml/options.gml
@%make echo_optencod
$(noecho)*optencod -q -i -n $(optencod_opt_$(host_os)) $(optencod_enc_$(host_os)) $]@ cmdlnprs.gh cmdlnprs.gc usage.gh . $(optencod_targets)
$(optencod) -i -n $(optencod_opt_$(host_os)) $(optencod_enc_$(host_os)) $]@ cmdlnprs.gh cmdlnprs.gc usage.gh . $(optencod_targets)
10 changes: 5 additions & 5 deletions bld/f77/wfc/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ wfc_trmem = 1

wfc_wreslib_cli = text

wfc_qnx_usage = 1

additional_clean = *.gh *.grh *.grc

exename_i86 = wfc
Expand Down Expand Up @@ -122,15 +124,13 @@ wfcmsgs.gh wfcmsgs.grh wfcgrps.gh wfcattrs.gh : $(f77wfc_dir)/gml/wfcmsgs.gml
$(noecho)*msgencod -q -s -ip -rc=MSG_LANG_BASE -utf8 $(msgencod_enc_$(host_os)) $[@ wfcmsgs.gh wfcmsgs.grh wfcgrps.gh wfcattrs.gh

# .gh options and targets for various hosts
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
#optencod_enc_linux = -utf8

optencod_targets = $(target_cpu) $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh $(exetarg_$(host_os)_res) : $(f77_dir)/gml/options.gml $(__MAKEFILES__)
usage.gh $(qnx_usage) : $(f77_dir)/gml/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
8 changes: 3 additions & 5 deletions bld/f77/wfl/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,14 @@ wflmsgs.gh wflmsgs.grh : $(f77wfl_dir)/gml/wflmsgs.gml


# optencod options and targets for various hosts
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
#optencod_enc_linux = -utf8

optencod_targets_i86 = targ2
optencod_targets = $(target_cpu) $(host_os) targ1 $(optencod_targets_$(target_cpu))
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh $(exetarg_$(host_os)_res) : $(f77_dir)/gml/options.gml $(__MAKEFILES__)
usage.gh : $(f77_dir)/gml/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
2 changes: 1 addition & 1 deletion bld/mstools/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ optencod_targets += dbg

cmdlnprs.gc cmdlnprs.gh usagemsg.gh : ../../gml/options.gml .EXPLICIT
@%make echo_optencod
$(noecho)*optencod -q -n $(optencod_enc_$(host_os)) $]@ cmdlnprs.gh cmdlnprs.gc usagemsg.gh . $(optencod_targets)
$(optencod) -n $(optencod_enc_$(host_os)) $]@ cmdlnprs.gh cmdlnprs.gc usagemsg.gh . $(optencod_targets)
10 changes: 4 additions & 6 deletions bld/ndisasm/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ wdis_trmem = 1

wdis_wreslib_cli = text

wdis_qnx_usage = 1

additional_clean = *.gh *.grh *.grc

!include cproj.mif
Expand Down Expand Up @@ -77,7 +79,6 @@ exetarg_objs = &
$(trmem_objs)
exetarg_libs = $(cli_orl_libs)
exetarg_res = $(proj_name).res
exetarg_qnx_res = usage.u
!include exetarg.mif

#
Expand All @@ -101,14 +102,11 @@ msg.grh : ../stand/wdis.msg $(__MAKEFILES__)
@%make echo_awk
$(noecho)*awk -v base=WDIS_LITERAL_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. $[@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh $(exetarg_$(host_os)_res): ../stand/options.gml $(__MAKEFILES__)
usage.gh $(qnx_usage): ../stand/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
13 changes: 6 additions & 7 deletions bld/nwlib/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ wlib_trmem = 1
wlib_wreslib_cli = text
!endif

wlib_qnx_usage = 1

# Base DLL name needs to be 8 chars or less on OS/2, argh! Additionally,
# internal module name may be required to match file name on some platforms.
!ifdef bootstrap
Expand Down Expand Up @@ -180,19 +182,16 @@ msg.grh : ../h/wlib.msg $(__MAKEFILES__)
@%make echo_awk
$(noecho)*awk -v base=MSG_RC_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. $[@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

usagew.gh $(exetarg_qnx_res) : ../optionsw.gml $(__MAKEFILES__)
usagew.gh $(qnx_usage) : ../optionsw.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_WLIB_BASE -x=_W -utf8 $(optencod_opt_$(host_os)) $[@ cmdlprsw.gh cmdlprsw.gc $@ cmdlnprs.gh $(optencod_targets)
$(optencod) -rc=MSG_USAGE_WLIB_BASE -x=_W -utf8 $(optencod_opt_$(host_os)) $[@ cmdlprsw.gh cmdlprsw.gc $@ cmdlnprs.gh $(optencod_targets)

usagea.gh : ../optionsa.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -p -x=_B -utf8 $[@ cmdlprsb.gh cmdlprsb.gc . . $(optencod_targets)
$(noecho)*optencod -q -rc=MSG_USAGE_AR_BASE -x=_A -utf8 $[@ cmdlprsa.gh cmdlprsa.gc $@ cmdlnprs.gh targ1 $(optencod_targets)
$(optencod) -p -x=_B -utf8 $[@ cmdlprsb.gh cmdlprsb.gc . . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_AR_BASE -x=_A -utf8 $[@ cmdlprsa.gh cmdlprsa.gc $@ cmdlnprs.gh targ1 $(optencod_targets)
11 changes: 5 additions & 6 deletions bld/plusplus/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plusplus_autodepends = .AUTODEPEND

plusplus_ntverrc = ..

plusplus_qnx_usage = 1

# Important! The C++ compiler modifies string literals
#suppress_zc = 1

Expand Down Expand Up @@ -155,7 +157,6 @@ exetarg_prebuild_objs = $(prebuild_objs)
exetarg_objs = $(comp_objs_exe)
exetarg_libs = $(cli_asminline_libs) $(cli_cg_libs)
!endif
exetarg_qnx_res = usage.u
!include exetarg.mif

#
Expand Down Expand Up @@ -213,18 +214,16 @@ ytab.c ytab.h : ../../y/plusplus.y ../../c/yydriver.c
diff y.out ../../y/plusplus.chk

# optencod options and targets for various hosts
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
#optencod_enc_linux = -utf8

optencod_targets = $(target_cpu) $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

cmdlnprs.gh cmdlnprs.gc cmdlnusg.gh usage01.int $(exetarg_qnx_res) : ../../gml/options.gml
cmdlnprs.gh cmdlnprs.gc cmdlnusg.gh usage01.int $(qnx_usage) : ../../gml/options.gml
@%make echo_optencod
$(noecho)*optencod -q -i -n $(optencod_opt_$(host_os)) $(optencod_enc_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc cmdlnusg.gh . $(optencod_targets)
$(optencod) -i -n $(optencod_opt_$(host_os)) $(optencod_enc_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc cmdlnusg.gh . $(optencod_targets)

./icmask.exe : ../../c/icmask.c
@%make echo_bldccl
Expand Down
8 changes: 2 additions & 6 deletions bld/rc/rc/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ exetarg_libs = $(dlltarg_name).lib
exetarg_prebuild_objs = $(misc_objs) $(prebuild_objs)
exetarg_objs = $(objs_exe)
!ifndef bootstrap
exetarg_qnx_res = usage.u
exetarg_res = wresexe.res
!endif
!endif
Expand Down Expand Up @@ -239,17 +238,14 @@ rcmsg.grh : ../h/rc.msg
$(misc_objs):
cat ../$@ >$@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

cmdlnprs.gh cmdlnprs.gc usage.gh $(exetarg_$(host_os)_res) : ../h/options.gml $(__MAKEFILES__)
cmdlnprs.gh cmdlnprs.gc usage.gh : ../h/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc $@ . $(optencod_targets)

./cvttable.exe: ../c/cvttable.c $(__MAKEFILES__)
@%make echo_bldccl
Expand Down
10 changes: 4 additions & 6 deletions bld/wasm/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ wasm_trmem = 1

wasm_wreslib_cli = text

wasm_qnx_usage = 1

# Extra files to delete on clean
additional_clean = *.gh *.grh *.grc *.gc

Expand Down Expand Up @@ -103,7 +105,6 @@ exetarg_name = bwasm
!else
exetarg_name = wasm
!endif
exetarg_qnx_res = usage.u
exetarg_res = $(proj_name).res
!include exetarg.mif

Expand All @@ -120,14 +121,11 @@ wasmsmsg.grh : ../h/wasms.msg $(__MAKEFILES__)
@%make echo_awk
$(noecho)*awk -v base=MSG_WASM_BASE -f "$(build_dir)/makemsg.awk" -v OUTFILE=$^. $[@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

cmdlnprs.gh cmdlnprs.gc usage.gh $(exetarg_$(host_os)_res) : ../h/options.gml $(__MAKEFILES__)
cmdlnprs.gh cmdlnprs.gc usage.gh $(qnx_usage) : ../h/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ cmdlnprs.gh cmdlnprs.gc $@ . $(optencod_targets)
7 changes: 3 additions & 4 deletions bld/wcl/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ optencod_opt = -n
optencod_src = $(wcl_dir)/h/optionso.gml
optencod_opt = -c
!endif
!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif

#optencod_enc_linux = -utf8

optencod_targets = $(target_cpu) $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh : $(optencod_src) $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q $(optencod_opt) $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) $(optencod_opt) $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
9 changes: 4 additions & 5 deletions bld/wsample/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ wsample_ntverrc = ../h

wsample_wreslib_cli = text

wsample_qnx_usage = 1

!ifndef target
target = $(host_os)
!endif
Expand Down Expand Up @@ -207,14 +209,11 @@ nversion.tmp: ./mknver.exe $(__MAKEFILES__)
@%make echo_execute
$(noecho)$[@ $@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(target)
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh $(exetarg_$(host_os)_res) : ../h/options.gml $(__MAKEFILES__)
usage.gh $(qnx_usage) : ../h/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
9 changes: 4 additions & 5 deletions bld/wstrip/master.mif
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ wstrip_ntverrc = ../h
wstrip_wreslib_cli = text
!endif

wstrip_qnx_usage = 1

additional_clean = *.gh *.grh *.grc

!ifdef bootstrap
Expand Down Expand Up @@ -59,14 +61,11 @@ msg.grh : ../h/wstrip.msg $(__MAKEFILES__)
@%make echo_awk
$(noecho)*awk -v base=MSG_RC_BASE -f $(build_dir)/makemsg.awk -v OUTFILE=$^. $[@

!ifdef exetarg_qnx_res
optencod_opt_qnx = -u=$(exetarg_qnx_res)
!endif
optencod_targets = $(host_os)
!ifeq debug 2
optencod_targets += dbg
!endif

usage.gh $(exetarg_$(host_os)_res) : ../h/options.gml $(__MAKEFILES__)
usage.gh $(qnx_usage) : ../h/options.gml $(__MAKEFILES__)
@%make echo_optencod
$(noecho)*optencod -q -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
$(optencod) -rc=MSG_USAGE_BASE -utf8 $(optencod_opt_$(host_os)) $[@ . . $@ . $(optencod_targets)
Loading

0 comments on commit fb47d32

Please sign in to comment.