9c94426d7a
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@988 6ac86273-5f31-0410-b378-82cca8765d1b
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
#
|
|
# 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=<num> set limit on number of error messages
|
|
# -w=<num> 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=<num> pack structure members with alignment {1,2,4,8,16}
|
|
#
|
|
# -3 optimization for 386 - given in $(CPUOPT)
|
|
# -g=<id> set code group name
|
|
# -nc=<id> set code class name
|
|
# -nd=<id> set data segment name
|
|
# -nm=<file> set module name
|
|
# -nt=<id> 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
|