Changeset 174 for sbliveos2/trunk/drv32/makefile.os2
- Timestamp:
- Apr 14, 2001, 6:26:09 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv32/makefile.os2
r152 r174 20 20 # 21 21 #****************************************************************************** 22 22 23 !include ..\include\version.mak 23 24 24 INC= .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h25 INCA= -I:$(%DDK)\BASE\INC25 CINCLUDES = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h 26 AINCLUDES = -I:$(%DDK)\BASE\INC 26 27 27 #=================================================================== 28 # 29 # Auto-dependency information 30 # 31 #=================================================================== 32 .ERASE 33 .SUFFIXES: 34 .SUFFIXES: .lst .obj .lib .cpp .c .asm .def 28 LNKFILE = $(OBJDIR)\sblive32.lnk 35 29 36 !if "$(DEBUG)" == "1" 37 CFLAGS = -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 38 ASFLAGS = -Mb -Li -Sv:M510 39 !else 40 CFLAGS = -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -xd -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 41 ASFLAGS = -Mb -Li -Sv:M510 42 !endif 43 44 !if "$(KEE)" == "1" 45 CFLAGS = $(CFLAGS) -mf -DKEE 46 ASFLAGS = $(ASFLAGS) -D:KEE 47 LNKFILE = sblivekee.lnk 48 !else 49 CFLAGS = $(CFLAGS) -mc -zu 50 LNKFILE = sblive.lnk 51 !endif 52 53 CC = WPP386 $(CFLAGS) $(IWC) 54 ASM = alp $(ASFLAGS) $(INCA) 55 56 DFLAGS = -l -s 57 DIS = WDISASM $(DFLAGS) 58 59 !if "$(DEBUG)" == "1" 60 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview 61 !else 62 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global 63 !endif 64 QFLAGS = system os2 option quiet, map, align=512 65 LINK = WLINK $(LFLAGS) 66 67 BFLAGS = -s -t -c -b -q -n 68 LIB = WLIB $(BFLAGS) 69 70 IFLAGS = /nologo 71 IMPLIB = IMPLIB $(IFLAGS) 72 73 .obj.lst: 74 $(DIS) $* 75 76 .c.obj: .AUTODEPEND 77 $(CC) $*.c 78 79 .cpp.obj: .AUTODEPEND 80 $(CC) $*.cpp 81 82 .asm.obj: .AUTODEPEND 83 $(ASM) $*.asm -Fl:$*.lst 84 85 .def.lib: 86 $(IMPLIB) $*.lib $*.def 30 EVERYTHING_AS_CPP=1 31 32BIT=1 32 !include ..\makefile.inc 33 !include ..\include\sblive32.mak 87 34 88 35 #=================================================================== … … 94 41 FILE2 = strategy.obj 95 42 FILE3 = init.obj 96 FILE4 = impmvdm.libdevhlp.obj43 FILE4 = devhlp.obj 97 44 FILE5 = idc.obj dispatch.obj 98 45 FILE6 = impdos.lib … … 100 47 FILE7 = impkee.lib 101 48 !endif 102 FILE8 = ..\sblive\sblive32.lib ..\lib32\linuxlib.lib49 FILE8 = impmvdm.lib 103 50 FILELAST = end.obj 104 51 FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILELAST) 52 105 53 TARGET = sblive32 106 WMAPNAME = sblive32.wmap54 WMAPNAME = $(OBJDIR)\sblive32.wmap 107 55 108 56 … … 113 61 # 114 62 #=================================================================== 115 all: $( TARGET).sys63 all: $(OBJDIR)\$(TARGET).sys 116 64 117 65 $(LNKFILE): makefile.os2 ..\include\version.mak 118 @%write $^@ name $(TARGET).sys119 66 @%write $^@ option alignment=16 120 67 @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@' 121 68 @%write $^@ option map=$(WMAPNAME) 122 @for %f in ($(FILES)) do @%append $^@ file %f 123 #!if "$(KEE)" == "1" 69 # why the @#$@#$!@$ doesn't this work here?????????????????????/ 70 # @%write $^@ name $(OBJDIR)\$(TARGET).sys 71 @%write $^@ name $(TARGET).sys 72 @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f 124 73 @%write $^@ import DOSIODELAYCNT DOSCALLS.427 125 #!endif 74 !if "$(KEE)" == "1" 75 @%write $^@ library $(SBLIVE_LIB)\sblive32kee.lib 76 @%write $^@ library $(SBLIVE_LIB)\linuxlibkee.lib 77 !else 78 @%write $^@ library $(SBLIVE_LIB)\sblive32.lib 79 @%write $^@ library $(SBLIVE_LIB)\linuxlib.lib 80 !endif 126 81 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib 127 82 128 $( TARGET).sys: $(LNKFILE) $(FILES)83 $(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) 129 84 $(LINK) @$(LNKFILE) 130 ..\drv16\wat2map $(WMAPNAME) $(TARGET).MAP 85 $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).MAP 86 cd $(OBJDIR) 131 87 mapsym $(TARGET).MAP 132 copy $(TARGET).sys ..\bin 88 cd ..\.. 89 # copy $(TARGET).sys $(OBJDIR)\$(TARGET).sys 90 copy sblive32.sys bin\releasekee 133 91 !ifdef KEE 134 copy $( TARGET).sys ..\bin\$(TARGET)kee.sys92 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)kee.sys 135 93 !else 136 copy $( TARGET).sys ..\bin\$(TARGET)w4.sys94 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)w4.sys 137 95 !endif 138 copy $( TARGET).sym ..\bin96 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN) 139 97 140 98 clean: 99 cd $(OBJDIR) 141 100 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib 142 101 cd ..
Note:
See TracChangeset
for help on using the changeset viewer.