tomwalters@0: ########################################################################### tomwalters@0: # tomwalters@0: # Makefile for AIM utilities library: libstitch.a tomwalters@0: # tomwalters@0: # (For convenience, this makefile directly calls the root makefile). tomwalters@0: # tomwalters@0: # @(#)makefile 1.7 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: GDIR = ../glib tomwalters@0: tomwalters@0: SLIB = libstitch.a tomwalters@0: tomwalters@0: INCLUDES = -I$(GDIR) tomwalters@0: tomwalters@0: .c.o : tomwalters@0: $(CC) $(CFLAGS) $(INCLUDES) -c $< tomwalters@0: tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: # Make stitch utilities library. tomwalters@0: tomwalters@0: OBJS = wrap.o funcs.o draw.o fill.o \ tomwalters@0: pullable.o fillable.o stypes.o io.o \ tomwalters@0: buffer.o source.o srcio.o stitch.o \ tomwalters@0: ops.o tomwalters@0: tomwalters@0: lib $(SLIB) : $(OBJS) tomwalters@0: ar rc $@ $? ; $(RANLIB) $@ tomwalters@0: tomwalters@0: tomwalters@0: ############################################################################ tomwalters@0: # dependencies tomwalters@0: tomwalters@0: stitch.o: stitch.h wrap.h tomwalters@0: source.o: stitch.h source.h pullable.h fillable.h buffer.h tomwalters@0: fillable.o: stitch.h source.h fillable.h buffer.h tomwalters@0: pullable.o: stitch.h source.h pullable.h tomwalters@0: srcio.o: stitch.h source.h pullable.h fillable.h srcio.h tomwalters@0: stypes.o: stitch.h source.h ops.h stypes.h tomwalters@0: funcs.o: stitch.h source.h ops.h funcs.h tomwalters@0: draw.o: stitch.h source.h ops.h draw.h tomwalters@0: fill.o: stitch.h source.h fill.h tomwalters@0: io.o: stitch.h source.h io.h tomwalters@0: ops.o: stitch.h source.h stypes.h ops.h tomwalters@0: buffer.o: stitch.h buffer.h tomwalters@0: wrap.o: stitch.h wrap.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: ############################################################################