| 
            Last change
 on this file since 652 was             580, checked in by bird, 22 years ago           | 
        
        
          | 
             
No stripping of import libs, objcopy is borked. 
 
           | 
        
        
          
            
              - 
Property                 cvs2svn:cvs-rev
 set to                 
1.4
               
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:executable
 set to                 
*
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            963 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 | # objcopy nukes imports.
 | 
|---|
| 7 | #ifeq ($(findstring prof,$(.TKIND)),)
 | 
|---|
| 8 | #ifneq ($(findstring aout,$(.TKIND)),)
 | 
|---|
| 9 | #ifeq ($(MODE),opt)
 | 
|---|
| 10 | #.NOINST := 1
 | 
|---|
| 11 | #endif
 | 
|---|
| 12 | #endif
 | 
|---|
| 13 | #endif
 | 
|---|
| 14 |                    
 | 
|---|
| 15 | include common.smak
 | 
|---|
| 16 | 
 | 
|---|
| 17 | libs: $(.MODULE)
 | 
|---|
| 18 | 
 | 
|---|
| 19 | # The rule for building an archive
 | 
|---|
| 20 | RULES += \
 | 
|---|
| 21 |         $(call FECHO,_@,$$.$(.TARG): $(.IMPS) $(.OBJS) $(.DEPS))$(NL) \
 | 
|---|
| 22 |         $(call FECHO,_@,        $$(call DO.IMPLIB))$(NL)
 | 
|---|
| 23 | 
 | 
|---|
| 24 | ## Rule for stripping debug info.
 | 
|---|
| 25 | #ifdef .NOINST
 | 
|---|
| 26 | #INS.FILES += $(INS)$(.INSDIR)$(.TARGET)
 | 
|---|
| 27 | #$(INS)$(.INSDIR)$(.TARGET): $.$(.TARG)
 | 
|---|
| 28 | #       objcopy --strip-debug $< $@
 | 
|---|
| 29 | #       
 | 
|---|
| 30 | #INS.FILES += $(INS)$(.INSDIR)dbg/$(.TARGET)
 | 
|---|
| 31 | #$(INS)$(.INSDIR)dbg/$(.TARGET): $.$(.TARG)
 | 
|---|
| 32 | #       mkdir -p $(INS)$(.INSDIR)dbg
 | 
|---|
| 33 | #       $(call CP,$<,$@)
 | 
|---|
| 34 | #endif  
 | 
|---|
| 35 |                                                                    
 | 
|---|
| 36 | include mkomflib.smak
 | 
|---|
| 37 | include comend.smak
 | 
|---|
| 38 | .NOINST := 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.