home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_08 / weber / region.mak < prev   
Makefile  |  1993-03-10  |  2KB  |  74 lines

  1. ### polymake program generator for region.exe
  2.  
  3. # note: the compiler is set by the environment variable C
  4. #    which is either ZORTECH or MSC
  5. # note: This project requires Zortech Flash Graphics and will not run on MSC
  6. # note: to create debugging info (make d=1 -f ...)
  7.  
  8. # project
  9. NAME = region
  10. PART1 = region zone display loadsave gui menu dialog
  11. CFILES = $(PART1)
  12. COBJS = $[f,,$(CFILES),obj]
  13.  
  14. %if "$(C)" == "ZORTECH"            # Zortech compiler
  15. # model
  16. MODEL = li
  17. INTOBJ = int
  18. LIB =
  19. # tools
  20. CC = ztc
  21. ASM = masm
  22. LINK = blinkx
  23. # debug versus normal
  24. %if "$(d)"    # debug
  25. CFLAGS = -g -s -C -c -r -m$(MODEL) -DDEBUG=1
  26. AFLAGS = /Zi /W2 /T
  27. LFLAGS = /CO /M /NOD
  28. LIB = zll fgdebug
  29. %else        # normal
  30. CFLAGS = -o -c -r -m$(MODEL) -DNDEBUG=1
  31. AFLAGS = /W2 /T
  32. LFLAGS = /F /PAC /NOD
  33. LIB = zll fg
  34. %endif
  35.  
  36. %elseif "$(C)" = "MSC"            # Microsoft C compiler
  37. doa:
  38.     @echo *** This program does not work with MSC. It requires Zortech Flash Graphics ***
  39.     %abort 666
  40.  
  41. %else                # No compiler specified
  42. doa:
  43.     @echo *** No compiler specified ***
  44.     %abort 666
  45. %endif
  46.  
  47.  
  48. #rules
  49. .asm.obj :
  50.     $(ASM) $(AFLAGS) $<,$@;
  51. .c.obj :
  52.     $(CC) $(CFLAGS) $<
  53.  
  54.  
  55. # ding an sich
  56. $(NAME).exe: $(COBJS)
  57.    $(LINK)  $(LFLAGS) <@<
  58. $[s,"+",$(PART1)] $(INTOBJ)
  59. $(NAME).exe
  60. $(NAME).map
  61. $(LIB)
  62. ;
  63. <
  64.  
  65. #dependencies
  66. gui.h: keys.h
  67. region.obj: region.c display.h loadsave.h gui.h zone.h
  68. zone.obj: zone.c zone.h display.h
  69. display.obj: display.c display.h gui.h zone.h
  70. loadsave.obj: loadsave.c loadsave.h gui.h
  71. gui.obj: gui.c gui.h
  72. menu.obj: menu.c gui.h
  73. dialog.obj: dialog.c gui.h
  74.