source: GPL/branches/uniaud-2.0/drv32/makefile.os2@ 319

Last change on this file since 319 was 313, checked in by Paul Smedley, 17 years ago

adjust location of makefile.inc in configure.cmd and all makefile.os2 files

File size: 5.1 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
72#LIBS = $(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
73LIBS = $(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)\ymfpci.lib $(ALSA_LIB)\ali5451.lib $(ALSA_LIB)\trident.lib $(ALSA_LIB)\nm256.lib $(ALSA_LIB)\sb.lib
74WMAPNAME = $(OBJDIR)\$(TARGET).wmap
75# $(ALSA_LIB)\au88xx.lib
76#===================================================================
77#
78# Specific dependencies
79#
80#===================================================================
81all: $(OBJDIR)\$(TARGET).sys $(OBJDIR)\$(TARGET).sym
82
83!ifdef USE_WLINK
84$(LNKFILE): $(MAKEFILE)
85 @%write $^@ option quiet
86 @%write $^@ option verbose
87 @%write $^@ option caseexact
88 @%write $^@ option cache
89 @%write $^@ option alignment=16
90 @%write $^@ option map=$(WMAPNAME)
91!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 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
100 @%write $^@ library $(%WATCOM)\lib386\os2\os2386.lib
101!else
102$(LNKFILE): $(MAKEFILE)
103 @%write $^@ /OUT:$(OBJDIR)\$(TARGET).sys
104 @%write $^@ /MAP:$(OBJDIR)\$(TARGET).map
105 @for %f in ($(FILES)) do @%append $^@ $(OBJDIR)\%f
106 @for %f in ($(LIBS)) do @%append $^@ %f
107 @%write $^@ $(%WATCOM)\lib386\os2\clib3r.lib
108 @%write $^@ $(%WATCOM)\lib386\os2\os2386.lib
109 @%write $^@ $(DEFFILE)
110!endif
111
112$(OBJDIR)\$(TARGET).sys: $(LNKFILE) $(FILES) $(LIBS)
113!if "$(KEE)" == "1"
114 @%write $(DEFFILE) description '$(%BUILDLEVEL) (KEE)'
115!else
116 @%write $(DEFFILE) description '$(%BUILDLEVEL) (W4)'
117!endif
118
119 $(LINK) @$(LNKFILE)
120
121 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)
122!if "$(KEE)" == "1"
123# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)kee.sys
124
125 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)kee.sys
126!else
127# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)w4.sys
128 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)w4.sys
129!endif
130
131$(OBJDIR)\$(TARGET).sym: $(LIBS)
132!ifdef USE_WLINK
133 @$(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).map
134!endif
135 cd $(OBJDIR)
136 mapsym $(TARGET).MAP
137 cd ..\..
138 copy $(OBJDIR)\$(TARGET).sym $(ALSA_BIN)
139
140clean: .SYMBOLIC
141 -@rm *.err 2>nul
142 @cd $(OBJDIR)
143 -rm *.obj *.lnk *.lrf *.def *.sys *.sym *.lst *.map *.wmap *.lib 2>nul
144 @cd ..\..
Note: See TracBrowser for help on using the repository browser.