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

Last change on this file since 193 was 192, checked in by sandervl, 24 years ago

rudi's updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 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#******************************************************************************
26
27.ERASE
28
29.SUFFIXES:
30.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .rc .h .lib
31
32CINCLUDES = ..\include
33
34#PRODUCT_NAME = C-Media 8738
35PRODUCT_NAME = Soundblaster Live!
36
37RCDLL = CARDINFO
38RCRES = CARDINFO
39HELPFILE = AUDHELP
40MIDIDLL = MIDIMAP
41MIDIRES = MIDIMAP
42
43
44#################################
45# Definitions for C Compiler
46#################################
47
48CC = wcc386
49CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -mf -bd -s -zl
50
51
52#################################
53# Definitions for linker
54#################################
55LINK = wlink
56LFLAGS = op c op maxe=25 op many
57
58
59#########################################
60# Definitions for RESOURCE compiler
61#########################################
62RC = rc
63RFLAGS = -i $(CINCLUDES)
64
65
66#########################################
67# Definitions for Help Compiler
68#########################################
69IPF = ipfc
70L = ENU
71P = 437
72C = 1
73
74
75#################################
76# Inference Rules
77#################################
78.c.obj:
79 $(CC) $(CFLAGS) $^&.c
80
81#################################
82# Object file lists
83#################################
84
85RCOBJS = rcstub.obj
86
87#############################################################################
88# Target Descriptions
89# If you wish to create a MIDI Map, take the # off the second line below
90# and add a # to the beginning of the first line below.
91#############################################################################
92
93all: rc help
94
95# midimap
96
97
98
99##################################
100# CARDINFO.DLL Target Descriptions
101##################################
102
103rc: $(RCDLL).dll
104
105$(RCDLL).lrf: makefile.os2
106 @%write $^@ Name $(RCDLL).DLL
107 @%write $^@ System os2v2 dll
108 @%write $^@ Option Description '$(PRODUCT_NAME) Installation Dll'
109 @%write $^@ File $(RCOBJS)
110
111
112$(RCDLL).dll: $(RCOBJS) $(RCRES).rc $(RCDLL).lrf makefile.os2
113 $(LINK) $(LFLAGS) @$(RCDLL).lrf
114 $(RC) $(RFLAGS) $(RCRES).rc $(RCDLL).dll
115 @copy $(RCDLL).dll ..\bin > nul
116 @copy control.scr ..\bin > nul
117 @copy audfiles.scr ..\bin > nul
118
119
120##################################
121# AUDHELP.HLP Target Descriptions
122##################################
123
124help: $(HELPFILE).hlp
125
126$(HELPFILE).hlp: $(HELPFILE).itl makefile.os2
127 @echo Creating file $@ > con
128 $(IPF) $(HELPFILE).itl /l=$(L) /codepage=$(P) /country=$(C)
129 @copy $(HELPFILE).hlp ..\bin > nul
130
131
132
133#############################################################################
134# MIDIMAP.DLL Target Descriptions
135# Take out the #'s at the beginning of the following lines in order to create
136# a MIDIMAP.DLL resource file.
137#############################################################################
138
139midimap: $(MIDIDLL).dll
140
141$(MIDIDLL).lrf: makefile.os2
142 @%write $^@ Name $(MIDIDLL).DLL
143 @%write $^@ System os2v2 dll
144 @%write $^@ Option Description '$(PRODUCT_NAME) Midi Mapper Dll'
145 @%write $^@ File $(RCOBJS)
146
147
148$(MIDIDLL).dll: $(RCOBJS) $(RCRES).rc $(MIDIDLL).lrf makefile.os2
149 $(LINK) $(LFLAGS) @$(MIDIDLL).lrf
150 $(RC) $(RFLAGS) $(RCRES).rc $(MIDIDLL).dll
151 @copy $(MIDIDLL).dll ..\bin > nul
152
153
154#############################################################################
155# Cleanup directory
156#############################################################################
157
158clean:
159 del *.dll *.obj *.err *.lrf *.res *.hlp
160
161
Note: See TracBrowser for help on using the repository browser.