source: cmedia/trunk/Install/makefile.sbl@ 355

Last change on this file since 355 was 354, checked in by stevenhl, 17 years ago

Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.

File size: 4.1 KB
Line 
1#******************************************************************************
2# Makefile for SB Live MMPM/2 installation files
3#
4# Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License as
8# published by the Free Software Foundation; either version 2 of
9# the License, or (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public
17# License along with this program; if not, write to the Free
18# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
19# USA.
20#
21#******************************************************************************
22
23!if [SET LIB=..\..\lib;%LIB%] || \
24 [SET INCLUDE=..\include;%INCLUDE%]
25!endif
26
27.SUFFIXES: .com .sys .exe .obj .mbj .asm .inc .def .lrf .crf .ref \
28 .lst .sym .map .c .h .lib .msg .pro .txt
29
30RCDLL=CARDINFO
31RCRES=CARDINFO
32HELPFILE=AUDHELP
33MIDIDLL=MIDIMAP
34MIDIRES=MIDIMAP
35
36#################################
37# Definitions for C Compiler
38#################################
39
40CC=icc
41
42#CFLAGS = /C+ /Gd- /Ge- /Gm+ /Gs- /Re /J- /Ms /Sm /Sn /Ss+ /DINCL_32
43CFLAGS = -Q -Si -Ti- -Ge- -Ss+ -W3 -C
44
45#################################
46# Definitions for linker
47#################################
48LINK=icc
49LFLAGS= -Q -Fi -Si -Ti- -Ge- -Ss+ -W3 -Gm+ /B"/noe"
50LIBS=os2386.lib MMPM2.LIB
51
52
53#########################################
54# Definitions for RESOURCE compiler
55#########################################
56RC = rc
57
58#########################################
59# Definitions for Help Compiler
60#########################################
61MS386=icc
62IPF=ipfc
63L=ENU
64P=437
65C=1
66
67#################################
68# Inference Rules
69#################################
70.c.obj:
71 $(CC) $(CFLAGS) /Fo$(<R).obj $(C_LST) $(<R).c
72
73#################################
74# Object file lists
75#################################
76
77RCOBJS = rcstub.obj
78
79#############################################################################
80# Target Descriptions
81# If you wish to create a MIDI Map, take the # off the second line below
82# and add a # to the beginning of the first line below.
83#############################################################################
84all: rc help
85
86##################################
87# CARDINFO.DLL Target Descriptions
88##################################
89
90rc: $(RCDLL).dll
91
92$(RCDLL).dll: $(RCOBJS) $(RCRES).rc makefile.os2 $(RCDLL).def
93 $(LINK) $(LFLAGS) -Fm -Fe$@ $(RCOBJS) $(RCDLL).def $(LIBS)
94 $(RC) $(RCRES).rc $(RCDLL).dll
95 @copy $(RCDLL).dll ..\bin > nul
96 @copy control.scr ..\bin > nul
97 @copy audfiles.scr ..\bin > nul
98
99##################################
100# AUDHELP.HLP Target Descriptions
101##################################
102help: $(HELPFILE).hlp
103$(HELPFILE).hlp: $(HELPFILE).itl makefile.os2
104 @echo Creating file $@ > con
105 $(IPF) $(HELPFILE).itl /l=$(L) /codepage=$(P) /country=$(C)
106 @copy $(HELPFILE).hlp ..\bin > nul
107
108#############################################################################
109# MIDIMAP.DLL Target Descriptions
110# Take out the #'s at the beginning of the following lines in order to create
111# a MIDIMAP.DLL resource file.
112#############################################################################
113
114midimap: $(MIDIDLL).dll
115
116$(MIDIDLL).dll: $(RCOBJS) $(MIDIRES).rc makefile.os2 $(MIDIDLL).lrf $(MIDIDLL).def
117 $(LINK) @$(MIDIDLL).lrf
118 $(RC) $(MIDIRES).rc $(MIDIDLL).dll
119
120$(MIDIDLL).def: makefile.os2
121 @echo Creating file <<$(@B).def
122LIBRARY $(MIDIDLL)
123DESCRIPTION 'DLL file containing resources'
124STUB 'OS2STUB.EXE'
125DATA NONE
126<<keep
127
128$(MIDIDLL).lrf: makefile.os2
129 @echo Creating file <<$(@B).lrf
130$(RCOBJS)
131$(MIDIDLL).dll
132$(MIDIDLL).map $(LFLAGS)
133$(LIBS)
134$(MIDIDLL).def;
135<<keep
Note: See TracBrowser for help on using the repository browser.