Changeset 174 for sbliveos2/trunk/drv16/makefile.os2
- Timestamp:
- Apr 14, 2001, 6:26:09 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/makefile.os2
r166 r174 31 31 !include ..\include\version.mak 32 32 33 ######################################### 34 # Options for Watcom 16-bit C compiler 35 ######################################### 36 # -bt=os2 = Build target OS is OS/2 37 # -ms = Memory model small 38 # -3 = Enable use of 80386 instructions 39 # -4 = Optimize for 486 (assumes -3) 40 # -5 = Optimize for Pentium (assumes -3) 41 # -j = char default is unsigned 42 # -d1 = Include line number info in object 43 # (necessary to produce assembler listing) 44 # -d2 = Include debugging info for ICAT 45 # (necessary to produce assembler listing) 46 # -o = Optimization - i = enable inline intrinsic functions 47 # r = optimize for 80486 and pentium pipes 48 # s = space is preferred to time 49 # l = enable loop optimizations 50 # a = relax aliasing constraints 51 # n = allow numerically unstable optimizations 52 # -s = Omit stack size checking from start of each function 53 # -zl = Place no library references into objects 54 # -wx = Warning level set to maximum (vs 1..4) 55 # -zfp = Prevent use of FS selector 56 # -zgp = Prevent use of GS selector 57 # -zq = Operate quietly 58 # -zm = Put each function in its own segment 59 # -zu = Do not assume that SS contains segment of DGROUP 60 # 61 CC=wcc 62 CPP=wpp 63 !if "$(DEBUG)" == "1" 64 CFLAGS =-ms -5 -bt=os2 -hc -d2 -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DDEBUG -DTARGET_OS216 65 CPPFLAGS=-ms -5 -bt=os2 -hc -d2 -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DDEBUG -DTARGET_OS216 66 LFLAGS = d codeview 67 !else 68 CFLAGS =-ms -5 -bt=os2 -oi -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DTARGET_OS216 69 CPPFLAGS=-ms -5 -bt=os2 -olinars -s -j -wx -zl -zfp -zgp -zq -zu -zp1 -DTARGET_OS216 70 LFLAGS = 71 !endif 72 73 ######################################### 74 # Options for Watcom assembler 75 ######################################### 76 # -bt=os2 = Build target OS is OS/2 77 # -d1 = Include line number info in object 78 # (necessary to produce assembler listing) 79 # -i = Include list 80 # -zq = Operate quietly 81 # -3p = 80386 protected-mode instructions 82 # 83 ASM=wasm 84 AFLAGS=-d1 -zq -3p -i 85 LINK=wlink $(LFLAGS) 86 87 ######################################### 88 # Inference rules 89 ######################################### 90 91 .c.obj: .AUTODEPEND 92 $(CC) $(CPPFLAGS) $*.c 93 94 .cpp.obj: .AUTODEPEND 95 $(CPP) $(CPPFLAGS) $*.cpp 96 97 .asm.obj: .AUTODEPEND 98 $(ASM) $(AFLAGS) $*.asm 33 !include ..\makefile.inc 34 !include ..\include\sblive16.mak 99 35 100 36 ######################################### … … 112 48 OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7) $(OBJS8) $(OBJS9) 113 49 114 all: $( NAME).sys$(NAME).sym50 all: $(OBJDIR)\$(NAME).sys $(OBJDIR)\$(NAME).sym 115 51 116 117 $(NAME).lrf: makefile.os2 ..\include\version.mak 52 $(OBJDIR)\$(NAME).lrf: makefile.os2 ..\include\version.mak 118 53 @%write $^@ system os2 dll 119 54 @%write $^@ option quiet … … 121 56 @%write $^@ option caseexact 122 57 @%write $^@ option cache 123 @%write $^@ option map=$( WMAPNAME)58 @%write $^@ option map=$(OBJDIR)\$(WMAPNAME) 124 59 @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@' 125 @%write $^@ name $( NAME).sys126 @for %f in ($(OBJS)) do @%append $^@ file %f60 @%write $^@ name $(OBJDIR)\$(NAME).sys 61 @for %f in ($(OBJS)) do @%append $^@ file $(OBJDIR)\%f 127 62 @%write $^@ import DOSIODELAYCNT DOSCALLS.427 128 @%write $( NAME).lrf library $(%DDK)\BASE\lib\os2286.lib129 @%write $( NAME).lrf library ..\runtime\runtime.lib130 @%write $( NAME).lrf library $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib131 @%write $( NAME).lrf library $(%DDK)\BASE\SRC\DEV\THINKPAD\DOCKII\APMCALLS\apmcalls.lib132 @%write $( NAME).lrf library $(%WATCOM)\lib286\plibs.lib63 @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\lib\os2286.lib 64 @%write $(OBJDIR)\$(NAME).lrf library $(SBLIVE_LIB)\runtime.lib 65 @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib 66 @%write $(OBJDIR)\$(NAME).lrf library $(%DDK)\BASE\SRC\DEV\THINKPAD\DOCKII\APMCALLS\apmcalls.lib 67 @%write $(OBJDIR)\$(NAME).lrf library $(%WATCOM)\lib286\plibs.lib 133 68 134 $( NAME).sys: $(OBJS) $(NAME).lrf makefile.os2 $(%DDK)\BASE\lib\os2286.lib ..\runtime\runtime.lib $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib135 $(LINK) @$( NAME).lrf136 copy $( NAME).sys ..\bin69 $(OBJDIR)\$(NAME).sys: $(OBJS) $(OBJDIR)\$(NAME).lrf makefile.os2 $(%DDK)\BASE\lib\os2286.lib $(SBLIVE_LIB)\runtime.lib $(%DDK)\BASE\src\dev\resource\rmcalls\rmcalls.lib 70 $(LINK) @$(OBJDIR)\$(NAME).lrf 71 copy $(OBJDIR)\$(NAME).sys ..\bin 137 72 138 $(NAME).sym: $(WMAPNAME) 139 wat2map $(WMAPNAME) $(NAME).MAP 73 $(OBJDIR)\$(NAME).sym: $(OBJDIR)\$(WMAPNAME) 74 $(WAT2MAP) $(OBJDIR)\$(WMAPNAME) $(OBJDIR)\$(NAME).MAP 75 cd $(OBJDIR) 140 76 mapsym $(NAME).MAP 141 copy $(NAME).sym ..\bin 77 cd ..\.. 78 copy $(OBJDIR)\$(NAME).sym ..\bin 142 79 143 80 clean:
Note:
See TracChangeset
for help on using the changeset viewer.