source: branches/libc-0.6/src/emx/mklib.smak@ 2650

Last change on this file since 2650 was 1128, checked in by bird, 22 years ago

Use archiver scripts to work around too long parameter lists.

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