tomwalters@0
|
1 ###########################################################################
|
tomwalters@0
|
2 #
|
tomwalters@0
|
3 # Makefile for AIM utilities library: libstitch.a
|
tomwalters@0
|
4 #
|
tomwalters@0
|
5 # (For convenience, this makefile directly calls the root makefile).
|
tomwalters@0
|
6 #
|
tomwalters@0
|
7 # @(#)makefile 1.7 J. Holdsworth, (MRC-APU) 6/6/91
|
tomwalters@0
|
8 # M. Allerhand, (MRC-APU) 26/1/93
|
tomwalters@0
|
9 #
|
tomwalters@0
|
10 #
|
tomwalters@0
|
11 ###########################################################################
|
tomwalters@0
|
12
|
tomwalters@0
|
13
|
tomwalters@0
|
14 default : install
|
tomwalters@0
|
15
|
tomwalters@0
|
16 GDIR = ../glib
|
tomwalters@0
|
17
|
tomwalters@0
|
18 SLIB = libstitch.a
|
tomwalters@0
|
19
|
tomwalters@0
|
20 INCLUDES = -I$(GDIR)
|
tomwalters@0
|
21
|
tomwalters@0
|
22 .c.o :
|
tomwalters@0
|
23 $(CC) $(CFLAGS) $(INCLUDES) -c $<
|
tomwalters@0
|
24
|
tomwalters@0
|
25
|
tomwalters@0
|
26 ############################################################################
|
tomwalters@0
|
27 # Make stitch utilities library.
|
tomwalters@0
|
28
|
tomwalters@0
|
29 OBJS = wrap.o funcs.o draw.o fill.o \
|
tomwalters@0
|
30 pullable.o fillable.o stypes.o io.o \
|
tomwalters@0
|
31 buffer.o source.o srcio.o stitch.o \
|
tomwalters@0
|
32 ops.o
|
tomwalters@0
|
33
|
tomwalters@0
|
34 lib $(SLIB) : $(OBJS)
|
tomwalters@0
|
35 ar rc $@ $? ; $(RANLIB) $@
|
tomwalters@0
|
36
|
tomwalters@0
|
37
|
tomwalters@0
|
38 ############################################################################
|
tomwalters@0
|
39 # dependencies
|
tomwalters@0
|
40
|
tomwalters@0
|
41 stitch.o: stitch.h wrap.h
|
tomwalters@0
|
42 source.o: stitch.h source.h pullable.h fillable.h buffer.h
|
tomwalters@0
|
43 fillable.o: stitch.h source.h fillable.h buffer.h
|
tomwalters@0
|
44 pullable.o: stitch.h source.h pullable.h
|
tomwalters@0
|
45 srcio.o: stitch.h source.h pullable.h fillable.h srcio.h
|
tomwalters@0
|
46 stypes.o: stitch.h source.h ops.h stypes.h
|
tomwalters@0
|
47 funcs.o: stitch.h source.h ops.h funcs.h
|
tomwalters@0
|
48 draw.o: stitch.h source.h ops.h draw.h
|
tomwalters@0
|
49 fill.o: stitch.h source.h fill.h
|
tomwalters@0
|
50 io.o: stitch.h source.h io.h
|
tomwalters@0
|
51 ops.o: stitch.h source.h stypes.h ops.h
|
tomwalters@0
|
52 buffer.o: stitch.h buffer.h
|
tomwalters@0
|
53 wrap.o: stitch.h wrap.h
|
tomwalters@0
|
54
|
tomwalters@0
|
55
|
tomwalters@0
|
56 ############################################################################
|
tomwalters@0
|
57 # Make targets in root makefile.
|
tomwalters@0
|
58
|
tomwalters@0
|
59 TARGETS = main install all sources \
|
tomwalters@0
|
60 links alllinks demo tar \
|
tomwalters@0
|
61 ftp tape mail clean \
|
tomwalters@0
|
62 sccslinks cleansccs help noplot
|
tomwalters@0
|
63
|
tomwalters@0
|
64 $(TARGETS) : FORCE
|
tomwalters@0
|
65 @ cd .. ; make $@
|
tomwalters@0
|
66 FORCE:
|
tomwalters@0
|
67
|
tomwalters@0
|
68
|
tomwalters@0
|
69 ############################################################################
|