source: cmedia/trunk/Testapp/makefile.os2

Last change on this file 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.1 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 = cmpcirev
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 -mf -otexan -s
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# Target Descriptions
83#############################################################################
84
85EXE = $(TARGET).exe
86
87all: $(EXE)
88
89$(TARGET).lrf: makefile.os2
90 @%write $^@ Name $(EXE)
91 @%write $^@ System os2v2
92 @%write $^@ Option Stub='..\tools\mstub.bin'
93 @%write $^@ Option Description '@$#$(BLDLVL_VENDOR):$(BLDLVL_REVISION)$#@$#$#1$#$# $(BLDLVL_DATETIME) $(BLDLVL_MACHINE)::::$(BLDLVL_FILEVER)::@@$(BLDLVL_PRODUCT) Chip Revision Tool'
94 @%write $^@ File $(OBJS)
95
96
97$(EXE): $(OBJS) $(TARGET).lrf $(DEF_DEP)
98 $(LINK) $(LFLAGS) @$(TARGET).lrf
99# $(RC) $(RFLAGS) $(TARGET).rc $(EXE)
100 ..\Tools\repack /e:2 $(EXE)
101 @copy $(EXE) ..\bin > nul
102
103
104#############################################################################
105# Cleanup directory
106#############################################################################
107
108clean:
109 del *.exe *.obj *.err *.lrf *.res *.hlp *.scr
110
111
Note: See TracBrowser for help on using the repository browser.