| Last change
 on this file since 720 was             719, checked in by Steven Levine, 18 years ago | 
        
          | 
Change DEBUG semantics to ifdef/ifndef
 | 
        
          | 
              
Property                 svn:eol-style
 set to                 native
Property                 svn:keywords
 set to                 Author Date Id Revision | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | # makefile_post.mk - common makefile suffix settings for all makefiles | 
|---|
| 2 | # $Id: makefile_post.mk 719 2007-07-04 00:54:53Z 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 |  | 
|---|
| 8 | !ifndef MAKERES | 
|---|
| 9 |  | 
|---|
| 10 | # Build executable | 
|---|
| 11 | # Common parameters go in .lrf | 
|---|
| 12 | # Executable specific paramters go in .def | 
|---|
| 13 |  | 
|---|
| 14 | $(BASE).exe: $(BASE).lrf $(BASE).obj $(BASE).res $(BASE).def .explicit | 
|---|
| 15 | $(LINK) @$(BASE).lrf @$(BASE).def | 
|---|
| 16 | $(RC) $(RCFLAGS2) $(BASE).res $@ | 
|---|
| 17 | bldlevel $@ | 
|---|
| 18 |  | 
|---|
| 19 | $(BASE).lrf: $(__MAKEFILES__) .explicit | 
|---|
| 20 | @%write $^@ $(LFLAGS) | 
|---|
| 21 | @%append $^@ name $(BASE) | 
|---|
| 22 | @%append $^@ file $(BASE).obj | 
|---|
| 23 | !ifdef %EXCEPTQ | 
|---|
| 24 | @%append $^@ file exceptq.lib | 
|---|
| 25 | !endif | 
|---|
| 26 | @%append $^@ library dll\fm3dll.lib | 
|---|
| 27 | @%append $^@ library os2386.lib | 
|---|
| 28 |  | 
|---|
| 29 | !else | 
|---|
| 30 |  | 
|---|
| 31 | # Replace resources | 
|---|
| 32 | $(BASE).exe: $(BASE).res .explicit | 
|---|
| 33 | @if not exist $@ echo $@ missing | 
|---|
| 34 | lxlite $@ /x+ /b- | 
|---|
| 35 | lxlite $@ /c:minstub | 
|---|
| 36 | $(RC) $(RCFLAGS2) $(BASE).res $@ | 
|---|
| 37 | lxlite $@ /x- /b- | 
|---|
| 38 | bldlevel $@ | 
|---|
| 39 |  | 
|---|
| 40 | !endif | 
|---|
| 41 |  | 
|---|
| 42 | lxlite:: $(BASE).exe .symbolic .explicit | 
|---|
| 43 | lxlite /x- /b- $? | 
|---|
| 44 |  | 
|---|
| 45 | clean:: .symbolic .explicit | 
|---|
| 46 | -del $(BASE).exe | 
|---|
| 47 | -del $(BASE).lrf | 
|---|
| 48 | -del $(BASE).map | 
|---|
| 49 | -del $(BASE).obj | 
|---|
| 50 | -del $(BASE).res | 
|---|
| 51 |  | 
|---|
| 52 | # The end | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.