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

File Contents

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