# # WATCOM.MAK - kernel copiler options for WATCOM C/OpenWatcom # TARGET=KWC BINPATH=$(BASE)\binw INCLUDEPATH=$(BASE)\h LIBPATH=$(BASE)\lib286 CC=$(BINPATH)\wcc CL=$(BINPATH)\wcl # used for building the library CLIB=$(LIBPATH)\dos\clibm.lib MATH_EXTRACT=*i4m MATH_INSERT =+i4m # # Compiler options for Watcom # --------------------------- # # -e= set limit on number of error messages # -w= set warning level number # -we treat all warnings as errors # -zq operate quietly # # -j change char default from unsigned to signed # -ms small memory model (small code/small data) # -os -> favor code size over execution time in optimizations # -s remove stack overflow checks # -ze enable extensions (i.e., near, far, export, etc.) # -zl remove default library information # -zp= pack structure members with alignment {1,2,4,8,16} # # -3 optimization for 386 - given in $(CPUOPT) # -g= set code group name # -nc= set code class name # -nd= set data segment name # -nm= set module name # -nt= set name of text segment # ALLCFLAGS=-I$(INCLUDEPATH) $(CPUOPT)$(ALLCFLAGS) INITCFLAGS=@wci.cfg CFLAGS =@wc.cfg CFLAGST=-I..\hdr;$(INCLUDEPATH) -e3-we-wx-zq-os-s-zp1-mt CFLAGSC=-I..\hdr;$(INCLUDEPATH) -e3-we-wx-zq-os-s-zp1-mc