1 |
sashby |
1.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 |
|
|
|