home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-04-09 | 783 b | 41 lines |
- # location of directory with gl source (modes.h)
- GLMODES = $$HOME/net/gl
-
- # gl library memory model
- # GLMODEL = -Ml for Microport System-V/AT
- # GLMODEL = for other systems
- GLMODEL = -Ml
-
- # gl library location
- # GLLIB = /usr/local/lib/gl.a
- GLLIB = -L/usr/local/lib -lgl
-
- # end of configurations options
-
- SHELL = /bin/sh
- CFLAGS = -g
- FILES = README Makefile libplot.c plot.1 plot.c testplot.c
-
- all: plot libplot.a
-
- plot: plot.o
- $(CC) $(GLMODEL) $(CFLAGS) -o plot plot.o $(GLLIB) -lm
-
- plot.o: plot.c
- $(CC) $(GLMODEL) $(CFLAGS) -I$(GLMODES) -c plot.c
-
- libplot.a: libplot.o
- ar rv libplot.a libplot.o
-
- testplot: testplot.o libplot.a
- $(CC) $(CFLAGS) -o testplot testplot.o libplot.a
-
- shar: $(FILES)
- @shar $(FILES)
-
- clean:
- rm -f *.o core testplot
-
- clobber: clean
- rm -f plot libplot.a
-