[147] | 1 | # $Id: makefile.os2 203 2007-06-14 01:29:05Z stevenhl $
|
---|
[142] | 2 | #******************************************************************************
|
---|
| 3 | # makefile for the SoundBlaster Live! OS/2 audio project
|
---|
| 4 | #
|
---|
| 5 | # Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 6 | #
|
---|
| 7 | # This program is free software; you can redistribute it and/or
|
---|
| 8 | # modify it under the terms of the GNU General Public License as
|
---|
| 9 | # published by the Free Software Foundation; either version 2 of
|
---|
| 10 | # the License, or (at your option) any later version.
|
---|
| 11 | #
|
---|
| 12 | # This program is distributed in the hope that it will be useful,
|
---|
| 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 15 | # GNU General Public License for more details.
|
---|
| 16 | #
|
---|
| 17 | # You should have received a copy of the GNU General Public
|
---|
| 18 | # License along with this program; if not, write to the Free
|
---|
| 19 | # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 20 | # USA.
|
---|
| 21 | #
|
---|
[203] | 22 | # 06 Jun 07 SHL Sync with OpenWatcom 1.6 - add missing .symbolics, use wmake
|
---|
| 23 | #
|
---|
[142] | 24 | #******************************************************************************
|
---|
| 25 | #
|
---|
| 26 | # To build a debug version:
|
---|
| 27 | # WMAKE -f makefile.os2 DEBUG=1 /ms
|
---|
| 28 | #
|
---|
[148] | 29 | # To build the KEE enhanced debug version of the 32 bits driver:
|
---|
| 30 | # WMAKE -f makefile.os2 DEBUG=1 KEE=1 /ms
|
---|
| 31 | #
|
---|
[142] | 32 | # To build a fully optimized release version:
|
---|
| 33 | # WMAKE -f makefile.os2 /ms
|
---|
| 34 | #
|
---|
[148] | 35 | # To build the KEE enhanced release version of the 32 bits driver:
|
---|
| 36 | # WMAKE -f makefile.os2 KEE=1 /ms
|
---|
| 37 | #
|
---|
| 38 | #
|
---|
[142] | 39 |
|
---|
| 40 | NMAKEOPTS=-f makefile.os2
|
---|
| 41 |
|
---|
| 42 | !if "$(DEBUG)" == "1"
|
---|
| 43 | NMAKEOPTS=$(NMAKEOPTS) DEBUG=1
|
---|
| 44 | !endif
|
---|
| 45 |
|
---|
[148] | 46 | !if "$(KEE)" == "1"
|
---|
| 47 | NMAKEOPTS=$(NMAKEOPTS) KEE=1
|
---|
| 48 | !endif
|
---|
| 49 |
|
---|
[142] | 50 | !if "$(DEBUG)" == "1"
|
---|
| 51 | !Message BUILDING DEBUG VERSION
|
---|
| 52 | !else
|
---|
| 53 | !Message BUILDING RELEASE VERSION
|
---|
| 54 | !endif
|
---|
| 55 |
|
---|
| 56 | ALL: cardinfo.dll runtime.lib linuxlib.lib sblive32.lib sblive16.sys sblive32.sys
|
---|
| 57 |
|
---|
[203] | 58 | cardinfo.dll: .symbolic
|
---|
[142] | 59 | @echo BUILDING CARDINFO.DLL
|
---|
| 60 | @cd Install
|
---|
[203] | 61 | @wmake -i $(NMAKEOPTS)
|
---|
[142] | 62 | @cd ..
|
---|
| 63 |
|
---|
[203] | 64 | runtime.lib: .symbolic
|
---|
[142] | 65 | @echo BUILDING runtime.lib
|
---|
| 66 | @cd runtime
|
---|
| 67 | @wmake $(NMAKEOPTS)
|
---|
| 68 | @cd ..
|
---|
| 69 |
|
---|
[203] | 70 | linuxlib.lib: .symbolic
|
---|
[142] | 71 | @echo BUILDING linuxlib.lib
|
---|
| 72 | @cd lib32
|
---|
[148] | 73 | @wmake /ms $(NMAKEOPTS)
|
---|
[142] | 74 | @cd ..
|
---|
| 75 |
|
---|
[203] | 76 | sblive32.lib: .symbolic
|
---|
[142] | 77 | @echo BUILDING sblive32.lib
|
---|
| 78 | @cd sblive
|
---|
[148] | 79 | @wmake /ms $(NMAKEOPTS)
|
---|
[142] | 80 | @cd ..
|
---|
| 81 |
|
---|
[203] | 82 | sblive16.sys: .symbolic
|
---|
[142] | 83 | @echo BUILDING sblive16.sys
|
---|
| 84 | @cd drv16
|
---|
| 85 | @wmake $(NMAKEOPTS)
|
---|
| 86 | @cd ..
|
---|
| 87 |
|
---|
[203] | 88 | sblive32.sys: .symbolic
|
---|
[142] | 89 | @echo BUILDING sblive32.sys
|
---|
| 90 | @cd drv32
|
---|
[148] | 91 | @wmake /ms $(NMAKEOPTS)
|
---|
[142] | 92 | @cd ..
|
---|