ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/binary.mk
Revision: 1.2
Committed: Mon Aug 28 08:23:11 2000 UTC (24 years, 8 months ago) by williamc
Branch: MAIN
CVS Tags: V0_19_7, V0_19_6, V0_19_6p1, V0_19_5, SFATEST, V0_19_4, V0_19_4_pre3, V0_19_4_pre2, V0_19_4_pre1, V0_19_3, V0_19_2, V0_19_1, V0_19_0, V0_18_5, V0_18_4, V_18_3_TEST, VO_18_3, V0_18_2, V0_18_1
Branch point for: SCRAM_V1_BRANCH, V0_19_4_B
Changes since 1.1: +56 -0 lines
Log Message:
Imported from HPWbranch

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 @$(SCRAMPERL) $(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
44
45 $(binname):
46 $(CClinkCmd)
47 @$(SCRAMPERL) $(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
48
49 $(binname)_insure:
50 $(CClinkCmdInsure)
51 @$(SCRAMPERL) $(SCRAM_HOME)/src/scramdatestamp $@.ds $@ $^
52
53 # -- dependencies
54 $(binname).dep: $(binname)
55 -include $(binname).dep
56