home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / CONTRIB / MBASE / MBASE51.TAR / mbase51 / examples / makefile < prev   
Encoding:
Makefile  |  1993-09-04  |  2.6 KB  |  98 lines

  1. #
  2. #  METALBASE 5.1
  3. #
  4. #  Released January 1st, 1992 by Huan-Ti [ t-richj@microsoft.com ]
  5. #
  6. #  Generic Unix/Xenix makefile for 5.1 examples
  7. #
  8. ###############################################################################
  9. #
  10. # Update the makefile to include any options in CFLAGS that you may need; then
  11. # try "make all"
  12. #
  13. # NOTE: This makefile is set up to use \INCLUDE, \UTIL and \LIB... change the
  14. #       names in here to point to where you left mbase.h and mbase.lib.
  15. #
  16. ###############################################################################
  17.  
  18. EXEDIR=../bin
  19. INCDIR=../src
  20. LIBRARY=../lib/libmb.a
  21. CC=cc
  22. LDOPTS=
  23.  
  24. CFLAGS=-DNO_TIMEB -I$(INCDIR)
  25.  
  26.  
  27. ###############################################################################
  28.  
  29. all : example1 example2 example3 example4 example5 example6 example7
  30.     @echo All examples have been built
  31.  
  32.  
  33. ###############################################################################
  34.  
  35. example1.rel : example1.s
  36.     build -q example1
  37. example1 : $(LIBRARY) example1.o example1.rel
  38.     $(CC) $(LDOPTS) -o $@ example1.o $(LIBRARY)
  39.  
  40.  
  41. ###############################################################################
  42.  
  43. example2.h : example2.s
  44.     build -h example2
  45. example2.rel : example2.s
  46.     build -q example2
  47. example2 : $(LIBRARY) example2.h example2.rel example2.o
  48.     $(CC) $(LDOPTS) -o $@ example2.o $(LIBRARY)
  49.  
  50.  
  51. ###############################################################################
  52.  
  53. example3.exe : example3.obj
  54.     link/nologo example3.obj, example3.exe,, \LIB\mbase.lib;
  55. example3 : $(LIBRARY) example3.o
  56.     $(CC) $(LDOPTS) -o $@ example3.o $(LIBRARY)
  57.  
  58.  
  59. ###############################################################################
  60.  
  61. example4.h : example4.s
  62.     build -h example4
  63. example4.rel : example4.s
  64.     build -q example4
  65. example4 : $(LIBRARY) example4.h example4.rel example4.o
  66.     $(CC) $(LDOPTS) -o $@ example4.o $(LIBRARY)
  67.  
  68.  
  69. ###############################################################################
  70.  
  71. example5.h : example5.s
  72.     build -h example5
  73. example5.rel : example5.s
  74.     build -q example5
  75. example5 : $(LIBRARY) example5.h example5.rel example5.o
  76.     $(CC) $(LDOPTS) -o $@ example5.o $(LIBRARY)
  77.  
  78.  
  79. ###############################################################################
  80.  
  81. example6.h : example6.s
  82.     build -h example6
  83. example6.rel : example6.s
  84.     build -q example6
  85. example6 : $(LIBRARY) example6.h example6.rel example6.o
  86.     $(CC) $(LDOPTS) -o $@ example6.o $(LIBRARY)
  87.  
  88.  
  89. ###############################################################################
  90.  
  91. example7.h : example7.s
  92.     build -h example7
  93. example7.rel : example7.s
  94.     build -q example7
  95. example7 : $(LIBRARY) example7.h example7.rel example7.o
  96.     $(CC) $(LDOPTS) -o $@ example7.o $(LIBRARY)
  97.  
  98.