home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / SAMPLES / PWBTUTOR / CNT.MA$ / CNT
Encoding:
Text File  |  1991-11-15  |  1.1 KB  |  56 lines

  1. #
  2. # CNT.MAK - A simple non-PWB makefile for building
  3. # the PWB tutorial example program COUNT.EXE .
  4. #
  5. # NOTE: The LIBS macro assumes the default library name.
  6. #       If you have built the libraries with different
  7. #       names, you must change the LIBS macro.
  8. #
  9.  
  10. #
  11. # Macros
  12. #
  13. CC      = cl
  14. CFLAGS  = /Oc /f
  15. LFLAGS  = /NOD:SLIBCE.LIB /NOE /NOI /EXE /FAR /PACKC
  16. LINKER  = link
  17. OBJS    = COUNT.OBJ COUNTBUF.OBJ COUNTCH.OBJ
  18. STDOBJS = SETARGV.OBJ
  19. LIBS    = SLIBCE
  20.  
  21. #
  22. # The "all" target.
  23. # Building 'all' builds COUNT.EXE.
  24. #
  25. all: COUNT.EXE
  26.  
  27. #
  28. # The file suffixes NMAKE needs to "know" about
  29. # for this project.
  30. #
  31. .SUFFIXES:
  32. .SUFFIXES: .obj .c
  33.  
  34. #
  35. # An inference rule to make an object file from a
  36. # C source file.
  37. #
  38. .c.obj :
  39.         $(CC) /c $(CFLAGS) /Fo$@ $<
  40.  
  41. #
  42. # The description block for building COUNT.EXE
  43. # from the object files and libraries.
  44. #
  45. COUNT.exe : $(OBJS)
  46.     $(LINKER) $(LFLAGS) $(OBJS) $(STDOBJS),$@,,$(LIBS);
  47.  
  48. # The 'clean' target. Delete intermediate files
  49. # that might be clutter after a release build
  50. #
  51. clean :
  52.     -del *.obj
  53.     -del *.mdt
  54.     -del *.ilk
  55.     -del *.sym
  56.