source: GPL/branches/uniaud32-2.1.x/drv32/makefile.os2@ 573

Last change on this file since 573 was 573, checked in by David Azarewicz, 13 years ago

fixed build problems, changed version number

File size: 5.0 KB
Line 
1#
2# Makefile for the 32bit UNIAUD driver
3#
4# (C) 2000-2002 InnoTek Systemberatung GmbH
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# note: Watcom headers must be before DDK headers to avoid conflicts
30# with C runtime headers
31CINCLUDES = .;..\include;$(%WATCOM)\h;$(DDK_BASE)\h
32
33AINCLUDES = -I:$(DDK_BASE)\INC
34
35TARGET = uniaud32
36LNKFILE = $(OBJDIR)\$(TARGET).lrf
37DEFFILE = $(OBJDIR)\$(TARGET).def
38MAKEFILE = makefile.os2
39
40!if "$(IBM_BUILD)" == "1"
41CDEFINES = -DIBM_BUILD
42!endif
43
44EVERYTHING_AS_CPP=1
4532BIT=1
46#Default packing on byte boundary
47PACK_1=1
48!include ..\makefile.inc
49
50
51#===================================================================
52#
53# List of source files
54#
55#===================================================================
56
57FILEFIRST= begin.obj startup.obj
58FILE2 = strategy.obj read.obj
59FILE3 = init.obj parse.obj
60FILE4 = devhlp.obj
61FILE5 = idc.obj dispatch.obj
62FILE6 = rmhelp.obj irq.obj util.obj
63FILE7 = impdos.lib
64!if "$(KEE)" == "1"
65FILE8 = impkee.lib
66!endif
67FILE10 = end.obj
68
69FILES = $(FILEFIRST) $(FILE0) $(FILE1) $(FILE2) $(FILE3) $(FILE4) $(FILE5) $(FILE6) $(FILE7) $(FILE8) $(FILE9) $(FILE10)
70
71LIBS = $(ALSA_LIB)\linuxlib.lib $(ALSA_LIB)\core.lib $(ALSA_LIB)\drivers.lib $(ALSA_LIB)\ac97.lib $(ALSA_LIB)\pci.lib $(ALSA_LIB)\ca0106.lib $(ALSA_LIB)\hda.lib $(ALSA_LIB)\sequencer.lib $(ALSA_LIB)\opl3.lib $(ALSA_LIB)\mpu401.lib $(ALSA_LIB)\synth.lib $(ALSA_LIB)\cs46xx.lib $(ALSA_LIB)\cs5535audio.lib $(ALSA_LIB)\emu10k1.lib $(ALSA_LIB)\ymfpci.lib $(ALSA_LIB)\ali5451.lib $(ALSA_LIB)\trident.lib $(ALSA_LIB)\nm256.lib $(ALSA_LIB)\sb.lib $(ALSA_LIB)\core_oss.lib
72WMAPNAME = $(OBJDIR)\$(TARGET).wmap
73# $(ALSA_LIB)\au88xx.lib
74#===================================================================
75#
76# Specific dependencies
77#
78#===================================================================
79all: $(OBJDIR)\$(TARGET).sys $(OBJDIR)\$(TARGET).sym
80
81!ifdef USE_WLINK
82$(LNKFILE): $(MAKEFILE)
83 @%write $^@ option quiet
84 @%write $^@ option verbose
85 @%write $^@ option caseexact
86 @%write $^@ option cache
87 @%write $^@ option alignment=16
88 @%write $^@ option map=$(WMAPNAME)
89!if "$(ACPI)" == "1"
90 @%write $^@ option description '$(%BUILDLEVEL) (ACPI)'
91!else if "$(KEE)" == "1" !else if "$(KEE)" == "1"
92 @%write $^@ option description '$(%BUILDLEVEL) (KEE)'
93!else
94 @%write $^@ option description '$(%BUILDLEVEL) (W4)'
95!endif
96 @%write $^@ name $(OBJDIR)\$(TARGET).sys
97 @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
98 @for %f in ($(LIBS)) do @%append $^@ library %f
99!if "$(ACPI)" == "1"
100 @%write $^@ $(ACPI_LIB)\acpidrv.lib
101!endif
102 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
103 @%write $^@ library $(%WATCOM)\lib386\os2\os2386.lib
104!else
105$(LNKFILE): $(MAKEFILE)
106 @%write $^@ /OUT:$(OBJDIR)\$(TARGET).sys
107 @%write $^@ /MAP:$(OBJDIR)\$(TARGET).map
108 @for %f in ($(FILES)) do @%append $^@ $(OBJDIR)\%f
109 @for %f in ($(LIBS)) do @%append $^@ %f
110!if "$(ACPI)" == "1"
111 @%write $^@ $(ACPI_LIB)\acpidrv.lib
112!endif
113 @%write $^@ $(%WATCOM)\lib386\os2\clib3r.lib
114 @%write $^@ $(%WATCOM)\lib386\os2\os2386.lib
115 @%write $^@ $(DEFFILE)
116!endif
117
118$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) $(LIBS)
119!if "$(ACPI)" == "1"
120 @%write $(DEFFILE) description '$(%BUILDLEVEL) (ACPI)'
121!else if "$(KEE)" == "1"
122 @%write $(DEFFILE) description '$(%BUILDLEVEL) (KEE)'
123!else
124 @%write $(DEFFILE) description '$(%BUILDLEVEL) (W4)'
125!endif
126
127 $(LINK) @$(LNKFILE)
128
129 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)
130
131!if "$(ACPI)" == "1"
132 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)acpi.sys
133!else if "$(KEE)" == "1"
134 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)kee.sys
135!else
136 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)w4.sys
137!endif
138
139$(OBJDIR)\$(TARGET).sym: $(LIBS)
140!ifdef USE_WLINK
141 @$(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).map
142!endif
143 cd $(OBJDIR)
144 mapsym $(TARGET).MAP
145 cd ..\..
146 copy $(OBJDIR)\$(TARGET).sym $(ALSA_BIN)
147
148clean: .SYMBOLIC
149 -@rm *.err
150 @cd $(OBJDIR)
151 -rm *.obj *.lnk *.lrf *.def *.sys *.sym *.lst *.map *.wmap *.lib
152 @cd ..\..
153 -@rm $(ALSA_BIN_)\$(TARGET)*.sys
154 -@rm $(ALSA_BIN)\$(TARGET).sy*
155 -@rm $(ALSA_LIB)\*.lib
Note: See TracBrowser for help on using the repository browser.