home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 7.ddi / EXAMPLES / GRAPHICS / GDEMO.MAK < prev    next >
Encoding:
Text File  |  1991-02-25  |  1.7 KB  |  49 lines

  1. #
  2. # Makefile to build the protected mode portion of the graphics
  3. # demo program with the glue routines.  We use the High C-386
  4. # compiler driver which comes with versions 1.6 and later of
  5. # the High C compiler to compile the C code and link the whole
  6. # image together with the compiler runtime libraries.
  7. #
  8.  
  9. #
  10. # Macro for the compiler name.  If the compiler is in auto mode
  11. # set this to hc386.  If the compiler is in manual mode, set this
  12. # to hcdriver.
  13. #
  14. hc = hc386    # works when the compiler is in auto mode
  15. #hc = hcdriver    # works when the compiler is in manual mode
  16.  
  17. #
  18. # Build the main demonstration program.  This program does not change,
  19. # regardless of the strategy being used for intermode communications.
  20. #
  21. gdemo.obj: gdemo.c
  22.     $(hc) $*.c -c -Hpro=..\..\includes\pl386.pro -Hoff=Floating_point
  23.  
  24. #
  25. # Build glue routines for both REALBREAK and CALLBUFS
  26. # intermode call methods.
  27. #
  28. gglue_rb.obj: gglue.c
  29.     $(hc) gglue.c -c -Hpro=..\..\includes\pl386.pro -DREALBREAK -Hobject=gglue_rb.obj -Hoff=Floating_point
  30.  
  31. gglue_cb.obj: gglue.c
  32.     $(hc) gglue.c -c -Hpro=..\..\includes\pl386.pro -Hobject=gglue_cb.obj -Hoff=Floating_point
  33.  
  34. prot_rb.obj: prot.asm
  35.     386asm prot -nolist -d REALBREAK -o prot_rb.obj
  36.  
  37. prot_cb.obj: prot.asm
  38.     386asm prot -nolist -o prot_cb.obj
  39.  
  40. #
  41. # Build versions of the demo which use both the REALBREAK and CALLBUFS
  42. # intermode call methods.
  43. #
  44. gdemo_rb.exp: gdemo.obj gglue_rb.obj prot_rb.obj
  45.     $(hc) prot_rb.obj gdemo.obj gglue_rb.obj -o gdemo_rb.exp -Hl=e "-realbreak _realend" -sym -nomap "-maxreal 2000h"
  46.  
  47. gdemo_cb.exp: gdemo.obj gglue_cb.obj prot_cb.obj
  48.     $(hc) gdemo.obj gglue_cb.obj prot_cb.obj -o gdemo_cb.exp -Hl=e "-callbufs 4" -sym -nomap "-maxreal 2000h"
  49.