Last change
on this file since 578 was 578, checked in by bird, 22 years ago |
Map files and .a stripping.
|
-
Property cvs2svn:cvs-rev
set to
1.6
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
889 bytes
|
Line | |
---|
1 | # This submakefile is included when a module needs to build a library.
|
---|
2 | # For a list of additional variables that can be defined prior to including
|
---|
3 | # this submakefile see build.txt.
|
---|
4 |
|
---|
5 | # for opt builds we have our own install rules
|
---|
6 | ifeq ($(findstring prof,$(.TKIND)),)
|
---|
7 | ifneq ($(findstring aout,$(.TKIND)),)
|
---|
8 | ifeq ($(MODE),opt)
|
---|
9 | .NOINST := 1
|
---|
10 | endif
|
---|
11 | endif
|
---|
12 | endif
|
---|
13 |
|
---|
14 | include common.smak
|
---|
15 |
|
---|
16 | libs: $(.MODULE)
|
---|
17 |
|
---|
18 | # The rule for building an archive
|
---|
19 | RULES += \
|
---|
20 | $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS))$(NL)\
|
---|
21 | $(call FECHO,_@, $$(DO.LIBRARY))$(NL)
|
---|
22 |
|
---|
23 | # Rule for stripping debug info.
|
---|
24 | ifdef .NOINST
|
---|
25 | INS.FILES += $(INS)$(.INSDIR)$(.TARGET)
|
---|
26 | $(INS)$(.INSDIR)$(.TARGET): $.$(.TARG)
|
---|
27 | objcopy --strip-debug $< $@
|
---|
28 |
|
---|
29 | INS.FILES += $(INS)$(.INSDIR)dbg/$(.TARGET)
|
---|
30 | $(INS)$(.INSDIR)dbg/$(.TARGET): $.$(.TARG)
|
---|
31 | mkdir -p $(INS)$(.INSDIR)dbg
|
---|
32 | $(call CP,$<,$@)
|
---|
33 | endif
|
---|
34 |
|
---|
35 | include mkomflib.smak
|
---|
36 | include comend.smak
|
---|
37 | .NOINST :=
|
---|
38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.