home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / WATBLD.MK < prev    next >
Text File  |  1996-08-28  |  1KB  |  54 lines

  1. ############################################################################
  2. #
  3. #  Copyright (C) 1995 Microsoft Corporation.  All Rights Reserved.
  4. #
  5. #  File:        watbld.mk
  6. #  Content:     Master makefile for WATCOM C 10.0
  7. #               For controlling what gets built (debug, retail, clean) 
  8. #
  9. ############################################################################
  10.  
  11. .before
  12.         @set include=..\..\..\inc;..\..\watinc;$(%include)
  13.         
  14. goal: debug.mak 
  15.  
  16. all : debug.mak retail.mak
  17.  
  18. debug : debug.mak .SYMBOLIC
  19.         @%null
  20.         
  21. retail : retail.mak .SYMBOLIC
  22.         @%null
  23.  
  24. !ifndef MAKENAME
  25. MAKENAME = default.mk
  26. !endif
  27.  
  28. debug.mak: .SYMBOLIC
  29.         @if not exist debug\nul md debug
  30.         @cd debug
  31.         @wmake -f ..\$(MAKENAME) DEBUG=1 MAKENAME=$(MAKENAME)
  32.         @cd ..
  33.         @echo *** Done making debug ***
  34.         
  35. retail.mak: .SYMBOLIC
  36.         @if not exist retail\nul md retail
  37.         @cd retail
  38.         @wmake -f ..\$(MAKENAME) MAKENAME=$(MAKENAME)
  39.         @cd ..
  40.         @echo *** Done making retail ***
  41.  
  42. clean:  debug.cln retail.cln .SYMBOLIC
  43.         @%NULL
  44.  
  45. debug.cln:  .SYMBOLIC
  46.         @if exist debug\nul del debug < ..\yes >nul
  47.         @if exist debug\nul rd debug >nul
  48.         @echo *** debug is clean ***
  49.  
  50. retail.cln: .SYMBOLIC
  51.         @if exist retail\nul del retail < ..\yes >nul
  52.         @if exist retail\nul rd retail >nul
  53.         @echo *** retail is clean ***
  54.