source: GPL/trunk/drv32/makefile.os2@ 265

Last change on this file since 265 was 235, checked in by Brendan Oakley, 18 years ago

New mkversion thanks to Mike, with BLDLEVEL and driver load output fixes from Allan

File size: 4.7 KB
Line 
1# $Id: makefile.os2,v 1.3 2003/07/21 18:35:39 vladest Exp $
2#
3# Makefile for the 32bit UNIAUD driver
4#
5# (C) 2000-2002 InnoTek Systemberatung GmbH
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License as
9# published by the Free Software Foundation; either version 2 of
10# the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public
18# License along with this program; if not, write to the Free
19# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
20# USA.
21#
22
23.ERASE
24
25.SUFFIXES:
26.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .h .lib
27
28!include ..\include\version.mak
29
30# note: Watcom headers must be before DDK headers to avoid conflicts
31# with C runtime headers
32CINCLUDES = .;..\include;$(%WATCOM)\h;$(DDK_BASE)\h
33
34AINCLUDES = -I:$(DDK_BASE)\INC
35
36TARGET = uniaud32
37LNKFILE = $(OBJDIR)\$(TARGET).lrf
38DEFFILE = $(OBJDIR)\$(TARGET).def
39MAKEFILE = makefile.os2
40
41!if "$(IBM_BUILD)" == "1"
42CDEFINES = -DIBM_BUILD
43!endif
44
45EVERYTHING_AS_CPP=1
4632BIT=1
47#Default packing on byte boundary
48PACK_1=1
49!include ..\..\makefile.inc
50
51
52#===================================================================
53#
54# List of source files
55#
56#===================================================================
57
58FILEFIRST= begin.obj startup.obj
59FILE2 = strategy.obj read.obj
60FILE3 = init.obj parse.obj
61FILE4 = devhlp.obj
62FILE5 = idc.obj dispatch.obj
63FILE6 = rmhelp.obj irq.obj util.obj
64FILE7 = impdos.lib
65!if "$(KEE)" == "1"
66FILE8 = impkee.lib
67!endif
68FILE10 = end.obj
69
70FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILE10)
71
72LIBS = $(ALSA_LIB)\linuxlib.lib $(ALSA_LIB)\core.lib $(ALSA_LIB)\drivers.lib $(ALSA_LIB)\ac97.lib $(ALSA_LIB)\pci.lib $(ALSA_LIB)\emu10k1.lib $(ALSA_LIB)\ca0106.lib $(ALSA_LIB)\hda.lib $(ALSA_LIB)\sequencer.lib $(ALSA_LIB)\opl3.lib $(ALSA_LIB)\mpu401.lib $(ALSA_LIB)\instr.lib $(ALSA_LIB)\synth.lib $(ALSA_LIB)\cs46xx.lib $(ALSA_LIB)\ymfpci.lib $(ALSA_LIB)\ali5451.lib $(ALSA_LIB)\trident.lib $(ALSA_LIB)\nm256.lib $(ALSA_LIB)\sb.lib
73WMAPNAME = $(OBJDIR)\$(TARGET).wmap
74# $(ALSA_LIB)\au88xx.lib
75#===================================================================
76#
77# Specific dependencies
78#
79#===================================================================
80all: $(OBJDIR)\$(TARGET).sys $(OBJDIR)\$(TARGET).sym
81
82!ifdef USE_WLINK
83$(LNKFILE): $(MAKEFILE)
84 @%write $^@ option quiet
85 @%write $^@ option verbose
86 @%write $^@ option caseexact
87 @%write $^@ option cache
88 @%write $^@ option alignment=16
89 @%write $^@ option map=$(WMAPNAME)
90!if "$(KEE)" == "1"
91 @%write $^@ option description '$(%BUILDLEVEL) (KEE)'
92!else
93 @%write $^@ option description '$(%BUILDLEVEL) (W4)'
94!endif
95 @%write $^@ name $(OBJDIR)\$(TARGET).sys
96 @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
97 @for %f in ($(LIBS)) do @%append $^@ library %f
98 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
99 @%write $^@ library $(%WATCOM)\lib386\os2\os2386.lib
100!else
101$(LNKFILE): $(MAKEFILE)
102 @%write $^@ /OUT:$(OBJDIR)\$(TARGET).sys
103 @%write $^@ /MAP:$(OBJDIR)\$(TARGET).map
104 @for %f in ($(FILES)) do @%append $^@ $(OBJDIR)\%f
105 @for %f in ($(LIBS)) do @%append $^@ %f
106 @%write $^@ $(%WATCOM)\lib386\os2\clib3r.lib
107 @%write $^@ $(%WATCOM)\lib386\os2\os2386.lib
108 @%write $^@ $(DEFFILE)
109!endif
110
111$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) $(LIBS)
112!if "$(KEE)" == "1"
113 @%write $(DEFFILE) description '$(%BUILDLEVEL) (KEE)'
114!else
115 @%write $(DEFFILE) description '$(%BUILDLEVEL) (W4)'
116!endif
117
118 $(LINK) @$(LNKFILE)
119
120 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)
121!if "$(KEE)" == "1"
122# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)kee.sys
123
124 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)kee.sys
125!else
126# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)w4.sys
127 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)w4.sys
128!endif
129
130$(OBJDIR)\$(TARGET).sym: $(LIBS)
131!ifdef USE_WLINK
132 @$(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).map
133!endif
134 cd $(OBJDIR)
135 mapsym $(TARGET).MAP
136 cd ..\..
137 copy $(OBJDIR)\$(TARGET).sym $(ALSA_BIN)
138
139clean: .SYMBOLIC
140 -@rm *.err 2>nul
141 @cd $(OBJDIR)
142 -rm *.obj *.lnk *.lrf *.def *.sys *.sym *.lst *.map *.wmap *.lib 2>nul
143 @cd ..\..
Note: See TracBrowser for help on using the repository browser.