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

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

Add what string

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