Changeset 174
- Timestamp:
- Apr 14, 2001, 6:26:09 PM (24 years ago)
- Location:
- sbliveos2/trunk
- Files:
-
- 7 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
sbliveos2/trunk/drv16/dwavestrm.cpp
r168 r174 48 48 temp = (PSTREAMBUFFEREX)pStream->qhReturn.PopHead(); 49 49 while(temp) { 50 if(pStream->h stream) {51 rc = DevHelp_PostEventSem(pStream->h stream);50 if(pStream->hSem) { 51 rc = DevHelp_PostEventSem(pStream->hSem); 52 52 if(rc != 0) { 53 53 dprintf(("DevHlp_PostEventSem returned %d", rc)); … … 167 167 168 168 if(hSem) { 169 APIRET rc = DevHelp_PostEventSem(hSem); 170 if(rc != 0) { 171 dprintf(("DevHlp_PostEventSem returned %d", rc)); 172 } 169 173 if(DevHelp_CloseEventSem(hSem) != 0) { 170 174 dprintf(("DevHlp_CloseEventSemaphore %lx failed!", hSem)); -
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: -
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 .. -
sbliveos2/trunk/lib32/makefile.os2
r148 r174 1 INC= $(%WATCOM)\H;..\include;..\runtime;..\sblive2 INCA= $(%DDK)\BASE\H1 CINCLUDES = $(%WATCOM)\H;..\include;..\runtime;..\sblive 2 AINCLUDES = $(%DDK)\BASE\H 3 3 4 #=================================================================== 5 # 6 # Auto-dependency information 7 # 8 #=================================================================== 9 .ERASE 10 .SUFFIXES: 11 .SUFFIXES: .lst .obj .cpp .c .asm 4 CDEFINES = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 12 5 13 !if "$(DEBUG)" == "1" 14 CFLAGS = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -dDEBUG -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 15 !else 16 CFLAGS = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 17 !endif 6 32BIT=1 7 !include ..\makefile.inc 8 !include ..\include\sblive32.mak 18 9 19 ASFLAGS = -Mb -Li -Sv:ALP20 21 !if "$(KEE)" == "1"22 CFLAGS = $(CFLAGS) -mf -DKEE23 ASFLAGS = $(ASFLAGS) -D:KEE24 !else25 CFLAGS = $(CFLAGS) -mc -zu26 !endif27 28 CC = WCC386 $(CFLAGS) $(IWC)29 CPP = WPP386 $(CFLAGS) $(IWC)30 ASM = alp $(ASFLAGS) $(INCA)31 32 DFLAGS = -l -s33 DIS = WDISASM $(DFLAGS)34 35 !if "$(DEBUG)" == "1"36 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview37 !else38 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global39 !endif40 QFLAGS = system os2 option quiet, map, align=51241 LINK = WLINK $(LFLAGS)42 43 BFLAGS = -c -b -q -n44 LIB = WLIB $(BFLAGS)45 46 .obj.lst:47 $(DIS) $*48 49 .cpp.obj: .AUTODEPEND50 $(CPP) $*.cpp51 52 .c.obj: .AUTODEPEND53 $(CC) $*.c54 55 .asm.obj: .AUTODEPEND56 $(ASM) $*.asm -Fl:$*.lst57 10 58 11 #=================================================================== … … 71 24 FILELAST = 72 25 FILES = $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) 26 27 !if "$(KEE)" == "1" 28 TARGET = linuxlibkee 29 !else 73 30 TARGET = linuxlib 31 !endif 74 32 33 LNKFILE = $(OBJDIR)\$(TARGET).lnk 75 34 76 35 … … 80 39 # 81 40 #=================================================================== 82 all: $( TARGET).lib41 all: $(OBJDIR)\$(TARGET).lib 83 42 84 43 85 $( TARGET).lnk: makefile.os286 @%create $( TARGET).lnk87 @for %f in ($(FILES)) do @%append $( TARGET).lnk -+%f44 $(LNKFILE): makefile.os2 45 @%create $(LNKFILE) 46 @for %f in ($(FILES)) do @%append $(LNKFILE) -+$(OBJDIR)\%f 88 47 89 $(TARGET).lib: $(TARGET).lnk $(FILES) 90 $(LIB) $(TARGET).lib @$(TARGET).lnk 48 $(OBJDIR)\$(TARGET).lib: $(LNKFILE) $(FILES) 49 $(LIB) $(OBJDIR)\$(TARGET).lib @$(LNKFILE) 50 copy $(OBJDIR)\$(TARGET).lib $(SBLIVE_LIB) 51 91 52 92 53 clean: 54 cd $(OBJDIR) 93 55 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib 56 cd .. -
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 -
sbliveos2/trunk/sblive/hwaccess.h
r142 r174 89 89 #endif 90 90 91 #define ERROR() DebugInt3()91 #define ERROR() _asm int 3 92 92 #else 93 93 #define DPD 1 ? (void)0 : (void)((int (*)(int, char *, ...)) NULL) -
sbliveos2/trunk/sblive/makefile.os2
r148 r174 1 INC = $(%WATCOM)\H;..\include;..\runtime2 INCA= $(%DDK)\BASE\H1 CINCLUDES = $(%WATCOM)\H;..\include;..\runtime;..\sblive 2 AINCLUDES = $(%DDK)\BASE\H 3 3 4 #=================================================================== 5 # 6 # Auto-dependency information 7 # 8 #=================================================================== 9 .ERASE 10 .SUFFIXES: 11 .SUFFIXES: .lst .obj .c .asm 4 CDEFINES = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 12 5 13 !if "$(DEBUG)" == "1" 14 CFLAGS = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -bt=os2v2 -e60 -hc -d2 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 15 !else 16 CFLAGS = -D__KERNEL__ -DPRIVATE_PCM_VOLUME -DMODULE -DPCI_8010 -dTARGET_OS2 -bt=os2v2 -e60 -5r -i$(INC) -omlinear -s -w4 -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -zp1 17 !endif 6 32BIT=1 7 !include ..\makefile.inc 8 !include ..\include\sblive32.mak 18 9 19 ASFLAGS = -Mb -Li -Sv:ALP20 21 !if "$(KEE)" == "1"22 CFLAGS = $(CFLAGS) -mf -DKEE23 ASFLAGS= $(ASFLAGS) -D:KEE24 !else25 CFLAGS = $(CFLAGS) -mc -zu26 !endif27 28 CC = WCC386 $(CFLAGS) $(IWC)29 ASM = alp $(ASFLAGS) $(INCA)30 31 DFLAGS = -l -s32 DIS = WDISASM $(DFLAGS)33 34 !if "$(DEBUG)" == "1"35 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global d codeview36 !else37 LFLAGS = system os2v2 physdevice option int, dosseg, map, eliminate, mang, tog sort global38 !endif39 QFLAGS = system os2 option quiet, map, align=51240 LINK = WLINK $(LFLAGS)41 42 BFLAGS = -c -b -q -n43 LIB = WLIB $(BFLAGS)44 45 .obj.lst:46 $(DIS) $*47 48 .c.obj: .AUTODEPEND49 $(CC) $*.c50 51 .asm.obj: .AUTODEPEND52 $(ASM) $*.asm -Fl:$*.lst53 10 54 11 #=================================================================== … … 67 24 FILELAST = 68 25 FILES = $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) 26 27 !if "$(KEE)" == "1" 28 TARGET = sblive32kee 29 !else 69 30 TARGET = sblive32 31 !endif 70 32 33 LNKFILE = $(OBJDIR)\$(TARGET).lnk 71 34 72 35 … … 76 39 # 77 40 #=================================================================== 78 all: $( TARGET).lib41 all: $(OBJDIR)\$(TARGET).lib 79 42 80 43 81 $( TARGET).lnk: makefile.os282 @%create $( TARGET).lnk83 @for %f in ($(FILES)) do @%append $( TARGET).lnk -+%f44 $(LNKFILE): makefile.os2 45 @%create $(LNKFILE) 46 @for %f in ($(FILES)) do @%append $(LNKFILE) -+$(OBJDIR)\%f 84 47 85 $(TARGET).lib: $(TARGET).lnk $(FILES) 86 $(LIB) $(TARGET).lib @$(TARGET).lnk 48 $(OBJDIR)\$(TARGET).lib: $(LNKFILE) $(FILES) 49 $(LIB) $(OBJDIR)\$(TARGET).lib @$(LNKFILE) 50 copy $(OBJDIR)\$(TARGET).lib $(SBLIVE_LIB) 51 87 52 88 53 clean: 54 cd $(OBJDIR) 89 55 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib 56 cd ..
Note:
See TracChangeset
for help on using the changeset viewer.