tomwalters@0: ########################################################################### tomwalters@0: # tomwalters@0: # Makefile for AIM graphics library: libglib.a tomwalters@0: # tomwalters@0: # (For convenience, this makefile directly calls the root makefile). tomwalters@0: # tomwalters@0: # @(#)makefile 1.35 J. Holdsworth, (MRC-APU) 6/6/91 tomwalters@0: # M. Allerhand, (MRC-APU) 26/1/93 tomwalters@0: # tomwalters@0: # tomwalters@0: ########################################################################### tomwalters@0: tomwalters@0: tomwalters@0: default : install tomwalters@0: tomwalters@0: GLIB = libglib.a tomwalters@0: OLIB = libopts.a tomwalters@0: tomwalters@0: .c.o : tomwalters@0: $(CC) $(CFLAGS) -c $< tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: # Make graphics library. tomwalters@0: tomwalters@0: OBJS = X.o null.o ps.o grey.o tomwalters@0: tomwalters@0: lib $(GLIB) : $(OBJS) tomwalters@0: ar rc $@ $? ; $(RANLIB) $@ tomwalters@0: tomwalters@0: $(OLIB) : options.o tomwalters@0: ar rc $@ $? ; $(RANLIB) $@ tomwalters@0: tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: # dependencies tomwalters@0: tomwalters@0: X.o: windows.h grey.h tomwalters@0: null.o: windows.h tomwalters@0: ps.o: windows.h grey.h axes.h tomwalters@0: grey.o: grey.h tomwalters@0: options.o: options.h tomwalters@0: tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: # Make targets in root makefile. tomwalters@0: tomwalters@0: TARGETS = main install all sources \ tomwalters@0: links alllinks demo tar \ tomwalters@0: ftp tape mail clean \ tomwalters@0: sccslinks cleansccs help noplot tomwalters@0: tomwalters@0: $(TARGETS) : FORCE tomwalters@0: @ cd .. ; make $@ tomwalters@0: FORCE: tomwalters@0: tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: