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 | #******************************************************************************
|
---|
22 | .ERASE
|
---|
23 |
|
---|
24 | .SUFFIXES:
|
---|
25 | .SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .h .lib
|
---|
26 |
|
---|
27 | !include ..\include\version.mak
|
---|
28 |
|
---|
29 | CINCLUDES = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h
|
---|
30 | AINCLUDES = -I:$(%DDK)\BASE\INC
|
---|
31 |
|
---|
32 | LNKFILE = $(OBJDIR)\sblive32.lrf
|
---|
33 |
|
---|
34 | EVERYTHING_AS_CPP=1
|
---|
35 | 32BIT=1
|
---|
36 | !include ..\makefile.inc
|
---|
37 | !include ..\include\sblive32.mak
|
---|
38 |
|
---|
39 | #===================================================================
|
---|
40 | #
|
---|
41 | # List of source files
|
---|
42 | #
|
---|
43 | #===================================================================
|
---|
44 | FILEFIRST= startup.obj
|
---|
45 | FILE2 = strategy.obj
|
---|
46 | FILE3 = init.obj
|
---|
47 | FILE4 = devhlp.obj
|
---|
48 | FILE5 = idc.obj dispatch.obj
|
---|
49 | FILE6 = impdos.lib
|
---|
50 | !if "$(KEE)" == "1"
|
---|
51 | FILE7 = impkee.lib
|
---|
52 | !endif
|
---|
53 | FILE8 = impmvdm.lib
|
---|
54 | FILELAST = end.obj
|
---|
55 | FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILELAST)
|
---|
56 |
|
---|
57 | TARGET = sblive32
|
---|
58 | WMAPNAME = $(OBJDIR)\sblive32.wmap
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 | #===================================================================
|
---|
63 | #
|
---|
64 | # Specific dependencies
|
---|
65 | #
|
---|
66 | #===================================================================
|
---|
67 | all: $(OBJDIR)\$(TARGET).sys $(OBJDIR)\$(TARGET).sym
|
---|
68 |
|
---|
69 | $(LNKFILE): makefile.os2 ..\include\version.mak
|
---|
70 | @%write $^@ option quiet
|
---|
71 | @%write $^@ option verbose
|
---|
72 | @%write $^@ option caseexact
|
---|
73 | @%write $^@ option cache
|
---|
74 | @%write $^@ option alignment=16
|
---|
75 | @%write $^@ option map=$(WMAPNAME)
|
---|
76 | @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
|
---|
77 | @%write $^@ name $(OBJDIR)\$(TARGET).sys
|
---|
78 | @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
|
---|
79 | @%write $^@ import DOSIODELAYCNT DOSCALLS.427
|
---|
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
|
---|
87 | @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
|
---|
88 |
|
---|
89 | $(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES)
|
---|
90 | $(LINK) @$(LNKFILE)
|
---|
91 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)
|
---|
92 | !ifdef KEE
|
---|
93 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)kee.sys
|
---|
94 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN_)\$(TARGET)kee.sys
|
---|
95 | !else
|
---|
96 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)w4.sys
|
---|
97 | copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN_)\$(TARGET)w4.sys
|
---|
98 | !endif
|
---|
99 |
|
---|
100 | $(OBJDIR)\$(TARGET).sym:
|
---|
101 | $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).MAP
|
---|
102 | cd $(OBJDIR)
|
---|
103 | mapsym $(TARGET).MAP
|
---|
104 | cd ..\..
|
---|
105 | copy $(OBJDIR)\$(TARGET).sym $(SBLIVE_BIN)
|
---|
106 |
|
---|
107 | clean:
|
---|
108 | cd $(OBJDIR)
|
---|
109 | del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
|
---|
110 | cd ..
|
---|