[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 Rdiger 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] | 35 | CINCLUDES = ..\include
|
---|
[142] | 36 |
|
---|
[192] | 37 | #PRODUCT_NAME = C-Media 8738
|
---|
| 38 | PRODUCT_NAME = Soundblaster Live!
|
---|
| 39 |
|
---|
| 40 | RCDLL = CARDINFO
|
---|
| 41 | RCRES = CARDINFO
|
---|
| 42 | HELPFILE = AUDHELP
|
---|
| 43 | MIDIDLL = MIDIMAP
|
---|
| 44 | MIDIRES = MIDIMAP
|
---|
| 45 |
|
---|
| 46 |
|
---|
[142] | 47 | #################################
|
---|
| 48 | # Definitions for C Compiler
|
---|
| 49 | #################################
|
---|
| 50 |
|
---|
[192] | 51 | CC = wcc386
|
---|
| 52 | CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -mf -bd -s -zl
|
---|
[142] | 53 |
|
---|
| 54 |
|
---|
| 55 | #################################
|
---|
| 56 | # Definitions for linker
|
---|
| 57 | #################################
|
---|
[192] | 58 | LINK = wlink
|
---|
| 59 | LFLAGS = op c op maxe=25 op many
|
---|
[142] | 60 |
|
---|
| 61 |
|
---|
| 62 | #########################################
|
---|
| 63 | # Definitions for RESOURCE compiler
|
---|
| 64 | #########################################
|
---|
[192] | 65 | RC = rc
|
---|
| 66 | RFLAGS = -i $(CINCLUDES)
|
---|
[142] | 67 |
|
---|
[192] | 68 |
|
---|
[142] | 69 | #########################################
|
---|
| 70 | # Definitions for Help Compiler
|
---|
| 71 | #########################################
|
---|
[192] | 72 | IPF = ipfc
|
---|
| 73 | L = ENU
|
---|
| 74 | P = 437
|
---|
| 75 | C = 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 |
|
---|
| 88 | RCOBJS = 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] | 96 | all: rc help
|
---|
| 97 |
|
---|
[192] | 98 | # midimap
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 |
|
---|
[142] | 102 | ##################################
|
---|
| 103 | # CARDINFO.DLL Target Descriptions
|
---|
| 104 | ##################################
|
---|
| 105 |
|
---|
[203] | 106 | rc: $(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] | 127 | help: $(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 |
|
---|
| 142 | midimap: $(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 |
|
---|
| 161 | clean:
|
---|
| 162 | del *.dll *.obj *.err *.lrf *.res *.hlp
|
---|
| 163 |
|
---|
| 164 |
|
---|