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

  1. #======================================================================
  2. #
  3. # Makefile for Borland C++ 3.0 WINDOS app using MAKE
  4. #
  5. # from "Undocumented Windows" by Schulman et al. (Addison-Wesley, 1992)
  6. #
  7. # Copyright (c) David Maxey 1992
  8. #
  9. # Definitions on MAKE command line:
  10. #
  11. #     APP       = application filename without extension - REQUIRED
  12. #     MODEL     = model (Should be lowercase s or m)
  13. #     DEPEND    = Additional link time dependencies
  14. #     EXTRAOBJS = Additional object files
  15. #     RES        = Override default WINDOS.RES file
  16. #     DEF        = Override default WINDOS.DEF file
  17. #
  18. # Notes:
  19. # If you want to use a custom .RES file, it should contain an icon
  20. # resource named WINIO_ICON in order for the app to have a class icon.
  21. #
  22. #======================================================================
  23.  
  24. .AUTODEPEND
  25.  
  26. # Macros
  27.  
  28. !IF !$d(MODEL)
  29. MODEL = s
  30. !ENDIF
  31. !IFNDEF RES
  32. RES = windos.res
  33. !ENDIF
  34. !IFNDEF DEF
  35. DEF = windos.def
  36. !ENDIF
  37.  
  38. # Rules/commands
  39.  
  40. .c.obj:
  41.     bcc -2 -K -d -O -v -WS -m$(MODEL) -I$(INCLUDE) -c -P-.C $*
  42.  
  43. .asm.obj:
  44.     tasm -zi $<;
  45.  
  46. $(APP).exe: $(APP).obj $(DEPEND)
  47.     tlink /v /Twe /L$(LIB) @&&!
  48. c0w$(MODEL)+$* $(EXTRAOBJS)
  49. $*
  50. $*
  51. $(MODEL)windos.lib+cw$(MODEL).lib+import.lib+math$(MODEL).lib
  52. $(DEF)
  53. !
  54.     rc -t $(RES) $&.exe
  55.  
  56.  
  57. $(APP).obj: $(APP).c winio.h wmhandlr.h
  58.     bcc -2 -K -d -O -v -WS -w-par -m$(MODEL) -I$(INCLUDE) -c -P-.C $*
  59.  
  60.  
  61.