ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/binary.mk
Revision: 1.1.2.1
Committed: Fri May 26 09:14:02 2000 UTC (24 years, 11 months ago) by williamc
Branch: V0_9branch
CVS Tags: V0_14_0, V0_12_12_4, V0_12_12_3, V0_12_12_2, V0_12_12_1, V0_12_12_0, PlayGround_0, V0_12_12, V0_12_11, V0_12_9b, V0_12_10, V0_12_9
Branch point for: HPWbranch
Changes since 1.1: +56 -0 lines
Log Message:
Start Rules

File Contents

# Content
1 # binary build rules
2 # Control Variables
3 # -----------------
4 # files
5 # binname
6 # SharedSuffix
7 # ArchiveSuffix
8
9 # ------ <Build> targets ----
10 binname=buildname
11 ifneq ($(strip $(files)),)
12 bin_%:: dependencies.mk binmsg
13 bin_opt:: $(binname)
14 bin_debug:: $(binname)_d
15 bin_debug_local:: $(binname)_d
16 endif
17
18 include $(TOOL_HOME)/BuildSystem/objectfiles.mk
19
20 # -- Set the library vpaths
21 VPATH+=$(binstore):$(RELEASETOP)/$(INTbin)
22
23 .PHONY: libmsg
24 binmsg::
25 @echo --------------- $(binname) --------------
26
27
28 #------------------------------------------------
29 # Set up some system variables
30 # - all begin with S
31 #------------------------------------------------
32
33 Sdebugobjs:=$(addsuffix _d.o,$(files))
34 Sbinobjs:=$(addsuffix _o.o,$(files))
35 Spicbinobjs:=$(addsuffix _pic.o,$(files))
36 SInsureobjs:=$(addsuffix _Insure.o,$(files))
37 SpicInsureobjs:=$(addsuffix _picInsure.o,$(files))
38
39 # Now more specific rules
40
41 $(binname)_d: $(Sbinobjs)
42 $(CClinkCmdDebug)
43 @$(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
44
45 $(binname):
46 $(CClinkCmd)
47 @$(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
48
49 $(binname)_insure:
50 $(CClinkCmdInsure)
51 @$(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
52
53 # -- dependencies
54 $(binname).dep: $(binname)
55 -include $(binname).dep
56