| Last change
 on this file since 2641 was             2446, checked in by bird, 20 years ago | 
        
          | 
serious restructuring in progress.
 | 
        
          | 
              
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 | 
|---|
| 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 | ifneq ($(findstring aout,$(.TKIND)),) | 
|---|
| 20 | $(eval $(call def_lib_ar)) | 
|---|
| 21 | else | 
|---|
| 22 | $(eval $(call def_lib)) | 
|---|
| 23 | endif | 
|---|
| 24 |  | 
|---|
| 25 | # Rule for stripping debug info. | 
|---|
| 26 | ifdef .NOINST | 
|---|
| 27 | INS.FILES += $(INS)$(.INSDIR)$(.TARGET) | 
|---|
| 28 | $(INS)$(.INSDIR)$(.TARGET): $.$(.TARG) | 
|---|
| 29 | objcopy --strip-debug $< $@ | 
|---|
| 30 |  | 
|---|
| 31 | INS.FILES += $(INS)$(.INSDIR)dbg/$(.TARGET) | 
|---|
| 32 | $(INS)$(.INSDIR)dbg/$(.TARGET): $.$(.TARG) | 
|---|
| 33 | mkdir -p $(INS)$(.INSDIR)dbg | 
|---|
| 34 | $(call CP,$<,$@) | 
|---|
| 35 | endif | 
|---|
| 36 |  | 
|---|
| 37 | include mkomflib.smak | 
|---|
| 38 | include comend.smak | 
|---|
| 39 | .NOINST := | 
|---|
| 40 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.