| 
            Last change
 on this file since 1268 was             1259, checked in by Steven Levine, 17 years ago           | 
        
        
          | 
             
Rework makefile dependencies to avoid target dependent build failures. 
Drop support for DEBUG=0 - it does not match what our C code expects. 
 
           | 
        
        
          
            
              - 
Property                 svn:eol-style
 set to                 
native
               
              - 
Property                 svn:keywords
 set to                 
Author Date Id Revision
               
             
           | 
        
        
          | 
            File size:
            1.4 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | # makefile_post.mk - common makefile suffix settings for all makefiles
 | 
|---|
| 2 | # $Id: makefile_post.mk 1259 2008-10-26 02:03:41Z stevenhl $
 | 
|---|
| 3 | 
 | 
|---|
| 4 | # 16 Aug 05 SHL Clean up
 | 
|---|
| 5 | # 16 Apr 06 SHL Add lxlite target
 | 
|---|
| 6 | # 02 Jun 07 SHL Convert to OpenWatcom
 | 
|---|
| 7 | # 23 Feb 08 JBS Add support for building SYM files (Ticket 226)
 | 
|---|
| 8 | # 25 Oct 08 JBS Rework DEBUG usage to match what C code expects
 | 
|---|
| 9 | 
 | 
|---|
| 10 | !ifndef MAKERES
 | 
|---|
| 11 | 
 | 
|---|
| 12 | # Build executable
 | 
|---|
| 13 | # Common parameters go in .lrf
 | 
|---|
| 14 | # Executable specific paramters go in .def
 | 
|---|
| 15 | 
 | 
|---|
| 16 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit
 | 
|---|
| 17 |   $(LINK) @$(BASE).lrf @$(BASE).def
 | 
|---|
| 18 |   $(RC) $(RCFLAGS2) $(BASE).res $@
 | 
|---|
| 19 |   bldlevel $@
 | 
|---|
| 20 | 
 | 
|---|
| 21 | $(BASE).lrf: $(__MAKEFILES__) .explicit
 | 
|---|
| 22 |    @%write $^@ $(LFLAGS)
 | 
|---|
| 23 |    @%append $^@ name $(BASE)
 | 
|---|
| 24 |    @%append $^@ file $(BASE).obj
 | 
|---|
| 25 | !ifdef %EXCEPTQ
 | 
|---|
| 26 |     @%append $^@ file exceptq.lib
 | 
|---|
| 27 | !endif
 | 
|---|
| 28 |    @%append $^@ library dll\fm3dll.lib
 | 
|---|
| 29 |    @%append $^@ library os2386.lib
 | 
|---|
| 30 | 
 | 
|---|
| 31 | $(BASE).sym: $(BASE).map
 | 
|---|
| 32 |    @echo Processing: $?
 | 
|---|
| 33 |    -perl debugtools\mapsymw.pl $?
 | 
|---|
| 34 | 
 | 
|---|
| 35 | !else
 | 
|---|
| 36 | 
 | 
|---|
| 37 | # Replace resources
 | 
|---|
| 38 | $(BASE).exe: $(BASE).res .explicit
 | 
|---|
| 39 |   @if not exist $@ echo $@ missing
 | 
|---|
| 40 | !ifndef DEBUG
 | 
|---|
| 41 |      lxlite $@ /x+ /b-
 | 
|---|
| 42 |      lxlite $@ /c:minstub
 | 
|---|
| 43 | !endif
 | 
|---|
| 44 |   $(RC) $(RCFLAGS2) $(BASE).res $@
 | 
|---|
| 45 | !ifndef DEBUG
 | 
|---|
| 46 |   lxlite $@ /x- /b-
 | 
|---|
| 47 | !endif
 | 
|---|
| 48 |   bldlevel $@
 | 
|---|
| 49 | 
 | 
|---|
| 50 | !endif
 | 
|---|
| 51 | 
 | 
|---|
| 52 | lxlite:: $(BASE).exe .symbolic .explicit
 | 
|---|
| 53 | !ifndef DEBUG
 | 
|---|
| 54 |   lxlite /x- /b- $?
 | 
|---|
| 55 | !endif
 | 
|---|
| 56 | 
 | 
|---|
| 57 | clean:: .symbolic .explicit
 | 
|---|
| 58 |   -del $(BASE).exe
 | 
|---|
| 59 |   -del $(BASE).lrf
 | 
|---|
| 60 |   -del $(BASE).map
 | 
|---|
| 61 |   -del $(BASE).obj
 | 
|---|
| 62 |   -del $(BASE).res
 | 
|---|
| 63 | 
 | 
|---|
| 64 | # The end
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.