home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l430 / 1.ddi / WINIOMS7.ZIP / WINIOAPP.NMK < prev    next >
Encoding:
Text File  |  1992-06-13  |  1.5 KB  |  56 lines

  1. #======================================================================
  2. #
  3. # Makefile for Microsoft C/C++ 7.0 WINDOS app using NMK
  4. #
  5. # from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
  6. #
  7. # Copyright (c) David Maxey 1992
  8. # Modified for Microsoft C/C++ 7.0
  9. # ARGCARGV hack to get around QuickWin library main!
  10. #
  11. # Definitions on NMK command line, or in environment variables
  12. # when NMK is invoked with /E:
  13. #
  14. #     APP       = application filename without extension - REQUIRED
  15. #     MODEL     = model (Should be capital S or M)
  16. #     DEPEND    = Additional link time dependencies
  17. #     EXTRAOBJS = Additional object files
  18. #     RES        = Override default WINDOS.RES file
  19. #     DEF        = Override default WINDOS.DEF file
  20. #
  21. # Notes:
  22. # If you want to use a custom .RES file, it should contain an icon
  23. # resource named WINIO_ICON in order for the app to have a class icon.
  24. #
  25. #======================================================================
  26.  
  27. all: $(APP).exe
  28.  
  29. # Macros
  30.  
  31. !IFNDEF MODEL
  32. MODEL = S
  33. !ENDIF
  34. !IFNDEF RES
  35. RES = windos.res
  36. !ENDIF
  37. !IFNDEF DEF
  38. DEF = windos.def
  39. !ENDIF
  40. LIBS = $(MODEL)windos $(MODEL)libcew libw
  41.  
  42. # Rules/commands
  43.  
  44. $(APP).obj: $(APP).c winio.h wmhandlr.h
  45.     cl -G2sw -Oais -Zpe -Zi -W3 -A$(MODEL) -c $(APP).c
  46.  
  47. .c.obj:
  48.     cl -G2sw -Oais -Zpe -Zi -W3 -A$(MODEL) -c $<
  49.  
  50. $(APP).exe:  $(APP).obj argcargv.obj $(DEPEND)
  51.     link /CO /nod/noe/align:16 $(APP) $(EXTRAOBJS),$(APP),nul, $(LIBS), $(DEF)
  52.     rc -t $(RES) $(APP).exe
  53.  
  54.  
  55.  
  56.