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

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