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

Last change on this file since 894 was 894, checked in by bird, 21 years ago

Converted to make 3.80+, no need to generate makefiles.

  • Property cvs2svn:cvs-rev set to 1.7
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 808 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
19$(eval $(call def_lib))
20
21# Rule for stripping debug info.
22ifdef .NOINST
23INS.FILES += $(INS)$(.INSDIR)$(.TARGET)
24$(INS)$(.INSDIR)$(.TARGET): $.$(.TARG)
25 objcopy --strip-debug $< $@
26
27INS.FILES += $(INS)$(.INSDIR)dbg/$(.TARGET)
28$(INS)$(.INSDIR)dbg/$(.TARGET): $.$(.TARG)
29 mkdir -p $(INS)$(.INSDIR)dbg
30 $(call CP,$<,$@)
31endif
32
33include mkomflib.smak
34include comend.smak
35.NOINST :=
36
Note: See TracBrowser for help on using the repository browser.