home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-09-04 | 2.6 KB | 98 lines |
- #
- # METALBASE 5.1
- #
- # Released January 1st, 1992 by Huan-Ti [ t-richj@microsoft.com ]
- #
- # Generic Unix/Xenix makefile for 5.1 examples
- #
- ###############################################################################
- #
- # Update the makefile to include any options in CFLAGS that you may need; then
- # try "make all"
- #
- # NOTE: This makefile is set up to use \INCLUDE, \UTIL and \LIB... change the
- # names in here to point to where you left mbase.h and mbase.lib.
- #
- ###############################################################################
-
- EXEDIR=../bin
- INCDIR=../src
- LIBRARY=../lib/libmb.a
- CC=cc
- LDOPTS=
-
- CFLAGS=-DNO_TIMEB -I$(INCDIR)
-
-
- ###############################################################################
-
- all : example1 example2 example3 example4 example5 example6 example7
- @echo All examples have been built
-
-
- ###############################################################################
-
- example1.rel : example1.s
- build -q example1
- example1 : $(LIBRARY) example1.o example1.rel
- $(CC) $(LDOPTS) -o $@ example1.o $(LIBRARY)
-
-
- ###############################################################################
-
- example2.h : example2.s
- build -h example2
- example2.rel : example2.s
- build -q example2
- example2 : $(LIBRARY) example2.h example2.rel example2.o
- $(CC) $(LDOPTS) -o $@ example2.o $(LIBRARY)
-
-
- ###############################################################################
-
- example3.exe : example3.obj
- link/nologo example3.obj, example3.exe,, \LIB\mbase.lib;
- example3 : $(LIBRARY) example3.o
- $(CC) $(LDOPTS) -o $@ example3.o $(LIBRARY)
-
-
- ###############################################################################
-
- example4.h : example4.s
- build -h example4
- example4.rel : example4.s
- build -q example4
- example4 : $(LIBRARY) example4.h example4.rel example4.o
- $(CC) $(LDOPTS) -o $@ example4.o $(LIBRARY)
-
-
- ###############################################################################
-
- example5.h : example5.s
- build -h example5
- example5.rel : example5.s
- build -q example5
- example5 : $(LIBRARY) example5.h example5.rel example5.o
- $(CC) $(LDOPTS) -o $@ example5.o $(LIBRARY)
-
-
- ###############################################################################
-
- example6.h : example6.s
- build -h example6
- example6.rel : example6.s
- build -q example6
- example6 : $(LIBRARY) example6.h example6.rel example6.o
- $(CC) $(LDOPTS) -o $@ example6.o $(LIBRARY)
-
-
- ###############################################################################
-
- example7.h : example7.s
- build -h example7
- example7.rel : example7.s
- build -q example7
- example7 : $(LIBRARY) example7.h example7.rel example7.o
- $(CC) $(LDOPTS) -o $@ example7.o $(LIBRARY)
-
-