source: sbliveos2/trunk/drv32/makefile.os2@ 174

Last change on this file since 174 was 174, checked in by sandervl, 24 years ago

makefile updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
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
23!include ..\include\version.mak
24
25CINCLUDES = .;$(%WATCOM)\H;..\runtime;..\include;$(%DDK)\base\h
26AINCLUDES = -I:$(%DDK)\BASE\INC
27
28LNKFILE = $(OBJDIR)\sblive32.lnk
29
30EVERYTHING_AS_CPP=1
3132BIT=1
32!include ..\makefile.inc
33!include ..\include\sblive32.mak
34
35#===================================================================
36#
37# List of source files
38#
39#===================================================================
40FILEFIRST= startup.obj
41FILE2 = strategy.obj
42FILE3 = init.obj
43FILE4 = devhlp.obj
44FILE5 = idc.obj dispatch.obj
45FILE6 = impdos.lib
46!if "$(KEE)" == "1"
47FILE7 = impkee.lib
48!endif
49FILE8 = impmvdm.lib
50FILELAST = end.obj
51FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILELAST)
52
53TARGET = sblive32
54WMAPNAME = $(OBJDIR)\sblive32.wmap
55
56
57
58#===================================================================
59#
60# Specific dependencies
61#
62#===================================================================
63all: $(OBJDIR)\$(TARGET).sys
64
65$(LNKFILE): makefile.os2 ..\include\version.mak
66 @%write $^@ option alignment=16
67 @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
68 @%write $^@ option map=$(WMAPNAME)
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
73 @%write $^@ import DOSIODELAYCNT DOSCALLS.427
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
81 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
82
83$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES)
84 $(LINK) @$(LNKFILE)
85 $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).MAP
86 cd $(OBJDIR)
87 mapsym $(TARGET).MAP
88 cd ..\..
89# copy $(TARGET).sys $(OBJDIR)\$(TARGET).sys
90 copy sblive32.sys bin\releasekee
91!ifdef KEE
92 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)kee.sys
93!else
94 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)\$(TARGET)w4.sys
95!endif
96 copy $(OBJDIR)\$(TARGET).sys $(SBLIVE_BIN)
97
98clean:
99 cd $(OBJDIR)
100 del *.obj *.err *.lnk *.sys *.sym *.lst *.map *.wmap *.lib
101 cd ..
Note: See TracBrowser for help on using the repository browser.