home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol12n07.zip / WINAPP.ZIP / NTAPP.ZIP / NTAPP next >
Text File  |  1993-03-25  |  1KB  |  51 lines

  1. !IF "$(CPU)" != ""
  2. OS=NT
  3. ENV=WIN32
  4. !ELSE
  5. OS=DOS
  6. ENV=WIN16
  7. !ENDIF
  8.  
  9. # If this generates the error "Unable to open DOSWIN16.MAK" then you need
  10. # to put a copy of that file (from the GENERIC sample code directory)
  11. # into a directory on your INCLUDE environment variable
  12.  
  13. !include <$(OS)$(ENV).MAK>
  14.  
  15. proj = NTAPP
  16.  
  17. all: $(proj).exe
  18.  
  19. # Update the help file if necessary
  20. # $(proj).hlp : $(proj).rtf
  21. #    hc -n $(proj).hpj
  22.  
  23. # Update the resource if necessary
  24. $(proj).res: $(proj).rc $(proj).h
  25.     rc -r -fo $(proj).res $(cvars) $(proj).rc
  26. !IFDEF CPUTYPE
  27.     cvtres -$(CPU) $(proj).res -o $(proj).rbj
  28. !ENDIF
  29.  
  30.  
  31. # Update the object file if necessary
  32. $(proj).obj: $(proj).c $(proj).h
  33.     $(cc) $(cflags) $(cvars) $(cdebug) $(proj).c
  34.  
  35. # Since the link line has some severe differences depending on what
  36. # platform we are running on, we need to special case this so that
  37. # we execute the correct commands:
  38.  
  39. $(proj).exe: $(proj).obj $(proj).res 
  40. !IFDEF CPUTYPE
  41. # This is for Windows NT:
  42. #   $(cvtobj) $(cvtdebug) *.obj
  43.     $(link) $(linknodebug) $(guiflags) $(proj).obj  $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe
  44. #   $(link) $(linkdebug) $(guiflags) $(proj).obj  $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe
  45. !ENDIF
  46. !IFNDEF CPUTYPE
  47. # This is for Windows DOS:
  48.     $(link) $(guiflags) $(proj).obj $(guilibs) $(proj).DEF
  49.     rc $(proj).res
  50. !ENDIF
  51.