[142] | 1 | #******************************************************************************
|
---|
| 2 | # Makefile for 32 bits OS/2 SB Live driver
|
---|
| 3 | #
|
---|
| 4 | # Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 5 | #
|
---|
| 6 | # This program is free software; you can redistribute it and/or
|
---|
| 7 | # modify it under the terms of the GNU General Public License as
|
---|
| 8 | # published by the Free Software Foundation; either version 2 of
|
---|
| 9 | # the License, or (at your option) any later version.
|
---|
| 10 | #
|
---|
| 11 | # This program is distributed in the hope that it will be useful,
|
---|
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | # GNU General Public License for more details.
|
---|
| 15 | #
|
---|
| 16 | # You should have received a copy of the GNU General Public
|
---|
| 17 | # License along with this program; if not, write to the Free
|
---|
| 18 | # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 19 | # USA.
|
---|
| 20 | #
|
---|
| 21 | #******************************************************************************
|
---|
[175] | 22 | .ERASE
|
---|
[174] | 23 |
|
---|
[175] | 24 | .SUFFIXES:
|
---|
| 25 | .SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .h .lib
|
---|
| 26 |
|
---|
[142] | 27 | !include ..\include\version.mak
|
---|
| 28 |
|
---|
[174] | 29 | CINCLUDES = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h
|
---|
| 30 | AINCLUDES = -I:$(%DDK)\BASE\INC
|
---|
[142] | 31 |
|
---|
[175] | 32 | LNKFILE = $(OBJDIR)\sblive32.lrf
|
---|
[142] | 33 |
|
---|
[174] | 34 | EVERYTHING_AS_CPP=1
|
---|
| 35 | 32BIT=1
|
---|
| 36 | !include ..\makefile.inc
|
---|
| 37 | !include ..\include\sblive32.mak
|
---|
[142] | 38 |
|
---|
| 39 | #===================================================================
|
---|
| 40 | #
|
---|
| 41 | # List of source files
|
---|
| 42 | #
|
---|
| 43 | #===================================================================
|
---|
| 44 | FILEFIRST= startup.obj
|
---|
| 45 | FILE2 = strategy.obj
|
---|
| 46 | FILE3 = init.obj
|
---|
[174] | 47 | FILE4 = devhlp.obj
|
---|
[142] | 48 | FILE5 = idc.obj dispatch.obj
|
---|
| 49 | FILE6 = impdos.lib
|
---|
[148] | 50 | !if "$(KEE)" == "1"
|
---|
[142] | 51 | FILE7 = impkee.lib
|
---|
[148] | 52 | !endif
|
---|
[174] | 53 | FILE8 = impmvdm.lib
|
---|
[142] | 54 | FILELAST = end.obj
|
---|
| 55 | FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILELAST)
|
---|
[174] | 56 |
|
---|
[142] | 57 | TARGET = sblive32
|
---|
[174] | 58 | WMAPNAME = $(OBJDIR)\sblive32.wmap
|
---|
[142] | 59 |
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | #===================================================================
|
---|
| 63 | #
|
---|
| 64 | # Specific dependencies
|
---|
| 65 | #
|
---|
| 66 | #===================================================================
|
---|
[175] | 67 | all: $(OBJDIR)\$(TARGET).sys $(OBJDIR)\$(TARGET).sym
|
---|
[142] | 68 |
|
---|
[152] | 69 | $(LNKFILE): makefile.os2 ..\include\version.mak
|
---|
[175] | 70 | @%write $^@ option quiet
|
---|
| 71 | @%write $^@ option verbose
|
---|
| 72 | @%write $^@ option caseexact
|
---|
| 73 | @%write $^@ option cache
|
---|
[142] | 74 | @%write $^@ option alignment=16
|
---|
[175] | 75 | @%write $^@ option map=$(WMAPNAME)
|
---|
[142] | 76 | @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
|
---|
[175] | 77 | @%write $^@ name $(OBJDIR)\$(TARGET).sys
|
---|
[174] | 78 | @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
|
---|
[142] | 79 | @%write $^@ import DOSIODELAYCNT DOSCALLS.427
|
---|
[174] | 80 | !if "$(KEE)" == "1"
|
---|
| 81 | @%write $^@ library $(SBLIVE_LIB)\sblive32kee.lib
|
---|
| 82 | @%write $^@ library $(SBLIVE_LIB)\linuxlibkee.lib
|
---|
| 83 | !else
|
---|
| 84 | @%write $^@ library $(SBLIVE_LIB)\sblive32.lib
|
---|
| 85 | @%write $^@ library $(SBLIVE_LIB)\linuxlib.lib
|
---|
| 86 | !endif
|
---|
[142] | 87 | @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
|
---|
| 88 |
|
---|
[174] | 89 | $(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES)
|
---|
[152] | 90 | $(LINK) @$(LNKFILE)
|
---|
[175] | 91 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)
|
---|
[148] | 92 | !ifdef KEE
|
---|
[174] | 93 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)kee.sys
|
---|
[176] | 94 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN_)\$(TARGET)kee.sys
|
---|
[148] | 95 | !else
|
---|
[174] | 96 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)w4.sys
|
---|
[176] | 97 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN_)\$(TARGET)w4.sys
|
---|
[148] | 98 | !endif
|
---|
[142] | 99 |
|
---|
[186] | 100 | $(OBJDIR)\$(TARGET).sym: $(WMAPNAME)
|
---|
[175] | 101 | $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).MAP
|
---|
| 102 | cd $(OBJDIR)
|
---|
| 103 | mapsym $(TARGET).MAP
|
---|
| 104 | cd ..\..
|
---|
| 105 | copy $(OBJDIR)\$(TARGET).sym $(SBLIVE_BIN)
|
---|
| 106 |
|
---|
[142] | 107 | clean:
|
---|
[174] | 108 | cd $(OBJDIR)
|
---|
[148] | 109 | del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
|
---|
[174] | 110 | cd ..
|
---|