source: GPL/drv32/makefile.os2@ 18

Last change on this file since 18 was 18, checked in by vladest, 20 years ago

initial import

File size: 4.3 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 = .;..\runtime;..\include;$(%WATCOM)\h;$(DDK_BASE)\h
33
34AINCLUDES = -I:$(DDK_BASE)\INC
35
36TARGET = uniaud32
37LNKFILE = $(OBJDIR)\$(TARGET).lrf
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 = rm.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)\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
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$(OBJDIR)\$(TARGET).lrf: $(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 @%write $^@ option description '@$#$(_VENDOR):$(_VERSION)$#@'
90 @%write $^@ name $(OBJDIR)\$(TARGET).sys
91 @for %f in ($(FILES)) do @%append $^@ file $(OBJDIR)\%f
92 @for %f in ($(LIBS)) do @%append $^@ library %f
93 @%write $^@ library $(%WATCOM)\lib386\os2\clib3r.lib
94!else
95$(OBJDIR)\$(TARGET).lrf: $(MAKEFILE)
96 @%write $^@ /OUT:$(OBJDIR)\$(TARGET).sys
97 @%write $^@ /MAP:$(OBJDIR)\$(TARGET).map
98 @for %f in ($(FILES)) do @%append $^@ $(OBJDIR)\%f
99 @for %f in ($(LIBS)) do @%append $^@ %f
100 @%write $^@ $(%WATCOM)\lib386\os2\clib3r.lib
101!endif
102
103$(OBJDIR)\$(TARGET).sys: $(OBJDIR)\$(TARGET).lrf $(LNKFILE) $(FILES) $(LIBS)
104 $(LINK) @$(OBJDIR)\$(TARGET).lrf
105 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)
106!if "$(KEE)" == "1"
107# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)kee.sys
108
109 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)kee.sys
110!else
111# copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN)\$(TARGET)w4.sys
112 copy $(OBJDIR)\$(TARGET).sys $(ALSA_BIN_)\$(TARGET)w4.sys
113!endif
114
115$(OBJDIR)\$(TARGET).sym: $(LIBS)
116!ifdef USE_WLINK
117 $(WAT2MAP) $(WMAPNAME) $(OBJDIR)\$(TARGET).map
118!endif
119 cd $(OBJDIR)
120 mapsym $(TARGET).MAP
121 cd ..\..
122 copy $(OBJDIR)\$(TARGET).sym $(ALSA_BIN)
123
124clean: .SYMBOLIC
125 -@rm *.err 2>nul
126 @cd $(OBJDIR)
127 -rm *.obj *.lnk *.sys *.sym *.lst *.map *.wmap *.lib 2>nul
128 @cd ..\..
Note: See TracBrowser for help on using the repository browser.