| 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 Rdiger 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 |
|
|---|
| 32 | CINCLUDES = ..\include
|
|---|
| 33 |
|
|---|
| 34 | #PRODUCT_NAME = C-Media 8738
|
|---|
| 35 | PRODUCT_NAME = Soundblaster Live!
|
|---|
| 36 |
|
|---|
| 37 | RCDLL = CARDINFO
|
|---|
| 38 | RCRES = CARDINFO
|
|---|
| 39 | HELPFILE = AUDHELP
|
|---|
| 40 | MIDIDLL = MIDIMAP
|
|---|
| 41 | MIDIRES = MIDIMAP
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | #################################
|
|---|
| 45 | # Definitions for C Compiler
|
|---|
| 46 | #################################
|
|---|
| 47 |
|
|---|
| 48 | CC = wcc386
|
|---|
| 49 | CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -mf -bd -s -zl
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | #################################
|
|---|
| 53 | # Definitions for linker
|
|---|
| 54 | #################################
|
|---|
| 55 | LINK = wlink
|
|---|
| 56 | LFLAGS = op c op maxe=25 op many
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | #########################################
|
|---|
| 60 | # Definitions for RESOURCE compiler
|
|---|
| 61 | #########################################
|
|---|
| 62 | RC = rc
|
|---|
| 63 | RFLAGS = -i $(CINCLUDES)
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | #########################################
|
|---|
| 67 | # Definitions for Help Compiler
|
|---|
| 68 | #########################################
|
|---|
| 69 | IPF = ipfc
|
|---|
| 70 | L = ENU
|
|---|
| 71 | P = 437
|
|---|
| 72 | C = 1
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | #################################
|
|---|
| 76 | # Inference Rules
|
|---|
| 77 | #################################
|
|---|
| 78 | .c.obj:
|
|---|
| 79 | $(CC) $(CFLAGS) $^&.c
|
|---|
| 80 |
|
|---|
| 81 | #################################
|
|---|
| 82 | # Object file lists
|
|---|
| 83 | #################################
|
|---|
| 84 |
|
|---|
| 85 | RCOBJS = 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 |
|
|---|
| 93 | all: rc help
|
|---|
| 94 |
|
|---|
| 95 | # midimap
|
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | ##################################
|
|---|
| 100 | # CARDINFO.DLL Target Descriptions
|
|---|
| 101 | ##################################
|
|---|
| 102 |
|
|---|
| 103 | rc: $(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 |
|
|---|
| 124 | help: $(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 |
|
|---|
| 139 | midimap: $(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 |
|
|---|
| 158 | clean:
|
|---|
| 159 | del *.dll *.obj *.err *.lrf *.res *.hlp
|
|---|
| 160 |
|
|---|
| 161 |
|
|---|