Changeset 174 for sbliveos2/trunk/runtime
- Timestamp:
- Apr 14, 2001, 6:26:09 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/runtime/makefile.os2
r148 r174 16 16 set PATH=$(%DDK)\BASE\TOOLS;$(%WATCOM)\BINP;$(%WATCOM)\BINW 17 17 18 H=$(%DDK)\base\h18 INCLUDE=$(%DDK)\base\h 19 19 INC=$(%DDK)\base\src\inc 20 20 21 # Options for Watcom 16-bit C compiler 22 # -bt=os2 = Build target OS is OS/2 23 # -ms = Memory model small 24 # -3 = Enable use of 80386 instructions 25 # -4 = Optimize for 486 (assumes -3) 26 # -5 = Optimize for Pentium (assumes -3) 27 # -d1 = Include line number info in object 28 # (necessary to produce assembler listing) 29 # -o = Optimization - i = enable inline intrinsic functions 30 # r = optimize for 80486 and pentium pipes 31 # s = space is preferred to time 32 # l = enable loop optimizations 33 # a = relax aliasing constraints 34 # n = allow numerically unstable optimizations 35 # -s = Omit stack size checking from start of each function 36 # -zl = Place no library references into objects 37 # -wx = Warning level set to maximum (vs 1..4) 38 # -zfp = Prevent use of FS selector 39 # -zgp = Prevent use of GS selector 40 # -zq = Operate quietly 41 # -zm = Put each function in its own segment 42 # -zu = Do not assume that SS contains segment of DGROUP 43 # 44 CC=wcc 45 CPP=wpp 46 !if "$(DEBUG)" == "0" 47 CFLAGS=-ms -4 -bt=os2 -olinars -s -wx -zl -zfp -zgp -zq -zu -zm 48 !else 49 CFLAGS=-ms -4 -bt=os2 -d1 -olinars -s -wx -zl -zfp -zgp -zq -zu -zm -DDEBUG 50 !endif 51 CINC=-i$(%WATCOM)\H;$(%WATCOM)\H\SYS;$(H) 52 53 # Options for Watcom assembler 54 # -bt=os2 = Build target OS is OS/2 55 # -d1 = Include line number info in object 56 # (necessary to produce assembler listing) 57 # -i = Include list 58 # -zq = Operate quietly 59 # 60 ASM=wasm 61 AFLAGS=-bt=os2 -d1 -zq 62 AINC=-i$(INC) 63 64 # Inference rules 65 .c.obj: .AUTODEPEND 66 $(CC) $(CFLAGS) $(CINC) $*.c 67 wdisasm -l -s $* 68 69 .cpp.obj: .AUTODEPEND 70 $(CPP) $(CFLAGS) $(CINC) $*.cpp 71 wdisasm -l -s $* 72 73 .asm.obj: .AUTODEPEND 74 $(ASM) $(AFLAGS) $(AINC) $*.asm 75 wdisasm -l -s $* 21 !include ..\makefile.inc 22 !include ..\include\sblive16.mak 76 23 77 24 # Object file list … … 80 27 OBJS=$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) 81 28 82 all: $( NAME).lib29 all: $(OBJDIR)\$(NAME).lib 83 30 84 31 ################################## … … 86 33 ################################## 87 34 88 $( NAME).lrf: makefile.os289 @%write $^@ $( NAME).lib90 @for %f in ($(OBJS)) do @%append $^@ -+ %f35 $(OBJDIR)\$(NAME).lrf: makefile.os2 36 @%write $^@ $(OBJDIR)\$(NAME).lib 37 @for %f in ($(OBJS)) do @%append $^@ -+ $(OBJDIR)\%f 91 38 92 $(NAME).lib: $(OBJS) makefile.os2 $(NAME).lrf 93 wlib @$(NAME).lrf 39 $(OBJDIR)\$(NAME).lib: $(OBJS) makefile.os2 $(OBJDIR)\$(NAME).lrf 40 wlib @$(OBJDIR)\$(NAME).lrf 41 copy $(OBJDIR)\$(NAME).lib $(SBLIVE_LIB) 94 42 95 43 clean: 44 cd $(OBJDIR) 96 45 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lrf *.lib 46 cd ..\.. 47
Note:
See TracChangeset
for help on using the changeset viewer.