source: sbliveos2/trunk/install/makefile.os2@ 203

Last change on this file since 203 was 203, checked in by stevenhl, 18 years ago

Sync makefiles with OpenWatcom 1.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.4 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# Modifications for C-Media 8738
7#
8# Copyright 2001 Rdiger Ihle (r.ihle@s-t.de)
9#
10# This program is free software; you can redistribute it and/or
11# modify it under the terms of the GNU General Public License as
12# published by the Free Software Foundation; either version 2 of
13# the License, or (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public
21# License along with this program; if not, write to the Free
22# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
23# USA.
24#
25# 29 Mar 02 SHL Sync with OpenWatcom 1.x - add missing .symbolics
26#
27#******************************************************************************
28
29.ERASE
30
31.SUFFIXES:
32.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .rc .h .lib
33
34CINCLUDES = ..\include
35
36#PRODUCT_NAME = C-Media 8738
37PRODUCT_NAME = Soundblaster Live!
38
39RCDLL = CARDINFO
40RCRES = CARDINFO
41HELPFILE = AUDHELP
42MIDIDLL = MIDIMAP
43MIDIRES = MIDIMAP
44
45
46#################################
47# Definitions for C Compiler
48#################################
49
50CC = wcc386
51CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -mf -bd -s -zl
52
53
54#################################
55# Definitions for linker
56#################################
57LINK = wlink
58LFLAGS = op c op maxe=25 op many
59
60
61#########################################
62# Definitions for RESOURCE compiler
63#########################################
64RC = rc
65RFLAGS = -i $(CINCLUDES)
66
67
68#########################################
69# Definitions for Help Compiler
70#########################################
71IPF = ipfc
72L = ENU
73P = 437
74C = 1
75
76
77#################################
78# Inference Rules
79#################################
80.c.obj:
81 $(CC) $(CFLAGS) $^&.c
82
83#################################
84# Object file lists
85#################################
86
87RCOBJS = rcstub.obj
88
89#############################################################################
90# Target Descriptions
91# If you wish to create a MIDI Map, take the # off the second line below
92# and add a # to the beginning of the first line below.
93#############################################################################
94
95all: rc help
96
97# midimap
98
99
100
101##################################
102# CARDINFO.DLL Target Descriptions
103##################################
104
105rc: $(RCDLL).dll .symbolic
106
107$(RCDLL).lrf: makefile.os2
108 @%write $^@ Name $(RCDLL).DLL
109 @%write $^@ System os2v2 dll
110 @%write $^@ Option Description '$(PRODUCT_NAME) Installation Dll'
111 @%write $^@ File $(RCOBJS)
112
113
114$(RCDLL).dll: $(RCOBJS) $(RCRES).rc $(RCDLL).lrf makefile.os2
115 $(LINK) $(LFLAGS) @$(RCDLL).lrf
116 $(RC) $(RFLAGS) $(RCRES).rc $(RCDLL).dll
117 @copy $(RCDLL).dll ..\bin > nul
118 @copy control.scr ..\bin > nul
119 @copy audfiles.scr ..\bin > nul
120
121
122##################################
123# AUDHELP.HLP Target Descriptions
124##################################
125
126help: $(HELPFILE).hlp .symbolic
127
128$(HELPFILE).hlp: $(HELPFILE).itl makefile.os2
129 @echo Creating file $@ > con
130 $(IPF) $(HELPFILE).itl /l=$(L) /codepage=$(P) /country=$(C)
131 @copy $(HELPFILE).hlp ..\bin > nul
132
133
134
135#############################################################################
136# MIDIMAP.DLL Target Descriptions
137# Take out the #'s at the beginning of the following lines in order to create
138# a MIDIMAP.DLL resource file.
139#############################################################################
140
141midimap: $(MIDIDLL).dll
142
143$(MIDIDLL).lrf: makefile.os2
144 @%write $^@ Name $(MIDIDLL).DLL
145 @%write $^@ System os2v2 dll
146 @%write $^@ Option Description '$(PRODUCT_NAME) Midi Mapper Dll'
147 @%write $^@ File $(RCOBJS)
148
149
150$(MIDIDLL).dll: $(RCOBJS) $(RCRES).rc $(MIDIDLL).lrf makefile.os2
151 $(LINK) $(LFLAGS) @$(MIDIDLL).lrf
152 $(RC) $(RFLAGS) $(RCRES).rc $(MIDIDLL).dll
153 @copy $(MIDIDLL).dll ..\bin > nul
154
155
156#############################################################################
157# Cleanup directory
158#############################################################################
159
160clean:
161 del *.dll *.obj *.err *.lrf *.res *.hlp
162
163
Note: See TracBrowser for help on using the repository browser.