ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/binary.mk
Revision: 1.3
Committed: Fri Dec 10 14:05:52 2004 UTC (20 years, 5 months ago) by sashby
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 williamc 1.2 # 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