ow-build: add global compiler control option to CC and CL macros
move only options which is related to the host environment not for target -zq quiet output (all) -fo=.obj set default extension for object file to .obj instead .o (Linux only)
This commit is contained in:
parent
c0009ebaaf
commit
0231c98e3f
@ -6,14 +6,14 @@
|
|||||||
include "../mkfiles/watcom.mak"
|
include "../mkfiles/watcom.mak"
|
||||||
|
|
||||||
DIRSEP=/
|
DIRSEP=/
|
||||||
|
CC=$(CC) -fo=.obj
|
||||||
|
CL=$(CL) -fo=.obj
|
||||||
INCLUDEPATH=$(COMPILERPATH)/h
|
INCLUDEPATH=$(COMPILERPATH)/h
|
||||||
RM=rm -f
|
RM=rm -f
|
||||||
CP=cp
|
CP=cp
|
||||||
ECHOTO=echo>>
|
ECHOTO=echo>>
|
||||||
INITPATCH=@echo > /dev/null
|
INITPATCH=@echo > /dev/null
|
||||||
CLDEF=1
|
CLDEF=1
|
||||||
CLT=wcl386 -zq -bcl=linux -I../hdr -fe=$@ -I$(COMPILERPATH)/lh
|
CLT=wcl386 -zq -fo=.obj -bcl=linux -I../hdr -fe=$@ -I$(COMPILERPATH)/lh
|
||||||
CLC=$(CLT)
|
CLC=$(CLT)
|
||||||
CFLAGST=-fo=.obj $(CFLAGST)
|
XLINK=$(XLINK) debug all format dos opt quiet,symfile,map,statics,verbose F { $(OBJS) } L ../lib/device.lib N kernel.exe $#
|
||||||
ALLCFLAGS=-fo=.obj $(ALLCFLAGS)
|
|
||||||
XLINK=$(XLINK) debug all op symfile format dos option map,statics,verbose F { $(OBJS) } L ../lib/device.lib N kernel.exe $#
|
|
||||||
|
@ -15,7 +15,5 @@ INCLUDEPATH=$(COMPILERPATH)\h
|
|||||||
CLDEF=1
|
CLDEF=1
|
||||||
CLT=wcl386 -zq -bcl=nt -I..\hdr -fe=$@ -I$(COMPILERPATH)\h -I$(COMPILERPATH)\h\nt
|
CLT=wcl386 -zq -bcl=nt -I..\hdr -fe=$@ -I$(COMPILERPATH)\h -I$(COMPILERPATH)\h\nt
|
||||||
CLC=$(CLT)
|
CLC=$(CLT)
|
||||||
CFLAGST=-fo=.obj $(CFLAGST)
|
|
||||||
ALLCFLAGS=-fo=.obj $(ALLCFLAGS)
|
|
||||||
NASMFLAGS=-DWATCOM $(NASMFLAGS)
|
NASMFLAGS=-DWATCOM $(NASMFLAGS)
|
||||||
#XLINK=$(XLINK) debug all op symfile format dos option map,statics,verbose F { $(OBJS) } L ..$(DIRSEP)lib$(DIRSEP)device.lib N kernel.exe $#
|
XLINK=$(XLINK) debug all format dos opt quiet,symfile,map,statics,verbose F { $(OBJS) } L ..$(DIRSEP)lib$(DIRSEP)device.lib N kernel.exe $#
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
# Use these for WATCOM 11.0c
|
# Use these for WATCOM 11.0c
|
||||||
COMPILERPATH=$(WATCOM)
|
COMPILERPATH=$(WATCOM)
|
||||||
CC=*wcc
|
CC=*wcc -zq
|
||||||
CL=wcl
|
CL=wcl -zq
|
||||||
INCLUDEPATH=$(COMPILERPATH)\H
|
INCLUDEPATH=$(COMPILERPATH)\H
|
||||||
INCLUDE=$(COMPILERPATH)\h
|
INCLUDE=$(COMPILERPATH)\h
|
||||||
EDPATH=$(COMPILERPATH)\EDDAT
|
EDPATH=$(COMPILERPATH)\EDDAT
|
||||||
@ -22,8 +22,8 @@ LIBPLUS=
|
|||||||
LIBTERM=
|
LIBTERM=
|
||||||
|
|
||||||
TINY=-mt
|
TINY=-mt
|
||||||
CFLAGST=-zq-zp1-os-s-we-e3-wx-bt=DOS
|
CFLAGST=-zp1-os-s-we-e3-wx-bt=DOS
|
||||||
CFLAGSC=-mc-zq-zp1-os-s-we-e3-wx-bt=DOS
|
CFLAGSC=-mc-zp1-os-s-we-e3-wx-bt=DOS
|
||||||
|
|
||||||
TARGET=KWC
|
TARGET=KWC
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ MATH_INSERT=+i4m
|
|||||||
# -3 optimization for 386 - given in CONFIG.MAK, not here
|
# -3 optimization for 386 - given in CONFIG.MAK, not here
|
||||||
#
|
#
|
||||||
|
|
||||||
ALLCFLAGS=-I..$(DIRSEP)hdr $(TARGETOPT) $(ALLCFLAGS) -zq-os-s-e5-j-zl-zp1-wx-we-zgf-zff-r
|
ALLCFLAGS=-I..$(DIRSEP)hdr $(TARGETOPT) $(ALLCFLAGS) -os-s-e5-j-zl-zp1-wx-we-zgf-zff-r
|
||||||
INITCFLAGS=$(ALLCFLAGS)-ntINIT_TEXT-gTGROUP-ndI
|
INITCFLAGS=$(ALLCFLAGS)-ntINIT_TEXT-gTGROUP-ndI
|
||||||
CFLAGS=$(ALLCFLAGS)-ntHMA_TEXT
|
CFLAGS=$(ALLCFLAGS)-ntHMA_TEXT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user