source: trunk/src/emx/mklib.smak@ 578

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
6ifeq ($(findstring prof,$(.TKIND)),)
7ifneq ($(findstring aout,$(.TKIND)),)
8ifeq ($(MODE),opt)
9.NOINST := 1
10endif
11endif
12endif
13
14include common.smak
15
16libs: $(.MODULE)
17
18# The rule for building an archive
19RULES += \
20 $(call FECHO,_@,$$.$(.TARG): $(.OBJS) $(.DEPS))$(NL)\
21 $(call FECHO,_@, $$(DO.LIBRARY))$(NL)
22
23# Rule for stripping debug info.
24ifdef .NOINST
25INS.FILES += $(INS)$(.INSDIR)$(.TARGET)
26$(INS)$(.INSDIR)$(.TARGET): $.$(.TARG)
27 objcopy --strip-debug $< $@
28
29INS.FILES += $(INS)$(.INSDIR)dbg/$(.TARGET)
30$(INS)$(.INSDIR)dbg/$(.TARGET): $.$(.TARG)
31 mkdir -p $(INS)$(.INSDIR)dbg
32 $(call CP,$<,$@)
33endif
34
35include mkomflib.smak
36include comend.smak
37.NOINST :=
38
Note: See TracBrowser for help on using the repository browser.