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 |
+ |
|