source: sbliveos2/trunk/install/makefile.os2

Last change on this file 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
RevLine 
[204]1# $Id: makefile.os2 204 2007-06-14 01:30:38Z stevenhl $
[142]2#******************************************************************************
[192]3# Makefile for 32 bits OS/2 SB Live driver
[142]4#
5# Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
6#
[192]7# Modifications for C-Media 8738
8#
9# Copyright 2001 Rdiger Ihle (r.ihle@s-t.de)
10#
[142]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#
[203]26# 29 Mar 02 SHL Sync with OpenWatcom 1.x - add missing .symbolics
27#
[142]28#******************************************************************************
29
[192]30.ERASE
[142]31
[192]32.SUFFIXES:
33.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .rc .h .lib
[142]34
[192]35CINCLUDES = ..\include
[142]36
[192]37#PRODUCT_NAME = C-Media 8738
38PRODUCT_NAME = Soundblaster Live!
39
40RCDLL = CARDINFO
41RCRES = CARDINFO
42HELPFILE = AUDHELP
43MIDIDLL = MIDIMAP
44MIDIRES = MIDIMAP
45
46
[142]47#################################
48# Definitions for C Compiler
49#################################
50
[192]51CC = wcc386
52CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -mf -bd -s -zl
[142]53
54
55#################################
56# Definitions for linker
57#################################
[192]58LINK = wlink
59LFLAGS = op c op maxe=25 op many
[142]60
61
62#########################################
63# Definitions for RESOURCE compiler
64#########################################
[192]65RC = rc
66RFLAGS = -i $(CINCLUDES)
[142]67
[192]68
[142]69#########################################
70# Definitions for Help Compiler
71#########################################
[192]72IPF = ipfc
73L = ENU
74P = 437
75C = 1
[142]76
[192]77
[142]78#################################
79# Inference Rules
80#################################
81.c.obj:
[192]82 $(CC) $(CFLAGS) $^&.c
[142]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#############################################################################
[192]95
[142]96all: rc help
97
[192]98# midimap
99
100
101
[142]102##################################
103# CARDINFO.DLL Target Descriptions
104##################################
105
[203]106rc: $(RCDLL).dll .symbolic
[142]107
[192]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
[142]118 @copy $(RCDLL).dll ..\bin > nul
119 @copy control.scr ..\bin > nul
120 @copy audfiles.scr ..\bin > nul
121
[192]122
[142]123##################################
124# AUDHELP.HLP Target Descriptions
125##################################
[192]126
[203]127help: $(HELPFILE).hlp .symbolic
[192]128
[142]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
[192]134
135
[142]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
[192]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)
[142]149
150
[192]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.