source: cmedia/trunk/Cmpciset/makefile.os2@ 354

Last change on this file since 354 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: 3.2 KB
Line 
1#******************************************************************************
2#
3# Copyright 2001 Rdiger Ihle (r.ihle@s-t.de)
4#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
7# published by the Free Software Foundation; either version 2 of
8# the License, or (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public
16# License along with this program; if not, write to the Free
17# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
18# USA.
19#
20#******************************************************************************
21
22.ERASE
23
24.SUFFIXES:
25.SUFFIXES: .sys .obj .asm .inc .def .lrf .ref .lst .sym .map .c .cpp .rc .h .lib
26
27!include ..\include\version.mak
28
29
30TARGET = cmpciset
31
32
33CINCLUDES = ..\include
34DEF_DEP = makefile.os2 ..\include\sbversion.h ..\include\version.mak
35
36
37#################################
38# Definitions for C Compiler
39#################################
40
41CC = wcc386
42CFLAGS = -i$(CINCLUDES) -wx -e25 -zq -bt=os2 -bm -mf -otexan -s -zm
43
44
45#################################
46# Definitions for linker
47#################################
48LINK = wlink
49LFLAGS = op c op maxe=25 op many op map op el
50
51
52#########################################
53# Definitions for RESOURCE compiler
54#########################################
55RC = rc
56RFLAGS = -i $(CINCLUDES)
57
58
59#########################################
60# Definitions for Help Compiler
61#########################################
62IPF = ipfc
63L = ENU
64P = 437
65C = 1
66
67
68#################################
69# Inference Rules
70#################################
71.c.obj:
72 $(CC) $(CFLAGS) $^&.c
73
74#################################
75# Object file lists
76#################################
77
78OBJS = $(TARGET).obj
79
80
81
82#############################################################################
83# Target Descriptions
84#############################################################################
85
86EXE = $(TARGET).exe
87
88all: $(EXE)
89
90$(TARGET).lrf: makefile.os2
91 @%write $^@ Name $(EXE)
92 @%write $^@ System os2v2_pm
93 @%write $^@ Option Stub='..\tools\mstub.bin'
94 @%write $^@ Option Description '@$#$(BLDLVL_VENDOR):$(BLDLVL_REVISION)$#@$#$#1$#$# $(BLDLVL_DATETIME) $(BLDLVL_MACHINE)::::$(BLDLVL_FILEVER)::@@$(BLDLVL_PRODUCT) SPDIF Setup Tool'
95 @%write $^@ File $(OBJS)
96 @%write $^@ Library mmpm2.lib
97
98
99$(EXE): $(OBJS) $(TARGET).lrf $(DEF_DEP)
100 $(LINK) $(LFLAGS) @$(TARGET).lrf
101 $(RC) $(RFLAGS) $(TARGET).rc $(EXE)
102 ..\Tools\repack /e:2 $(EXE)
103 @copy $(EXE) ..\bin > nul
104
105
106#############################################################################
107# Cleanup directory
108#############################################################################
109
110clean:
111 del *.exe *.obj *.err *.lrf *.res *.hlp *.scr
112
Note: See TracBrowser for help on using the repository browser.