Commit | Line | Data |
---|---|---|
95f51977 | 1 | # |
ca67e7b4 C |
2 | # $Header: Makefile,v 10.1 86/11/29 13:54:07 jg Rel $ |
3 | # | |
4 | ||
5 | # | |
6 | # $Header: Makefile,v 10.1 86/11/29 13:54:07 jg Rel $ | |
95f51977 C |
7 | # |
8 | ||
9 | # Copyright 1985, Massachusetts Institute of Technology | |
10 | # Copyright (c) 1986 by Sun Microsystems, Inc. | |
11 | # | |
12 | # @(#)Makefile 2.1 86/01/28 | |
13 | # | |
14 | ||
15 | INCPATH=-I. -I../include | |
ca67e7b4 C |
16 | OFLAG= -O |
17 | CFLAGS= ${OFLAG} ${INCPATH} | |
95f51977 C |
18 | #CFLAGS= -g ${INCPATH} |
19 | C2 = /lib/c2 | |
20 | ||
21 | SRCS= bitpix.c copy.c cursor.c draw.c fill.c font.c\ | |
22 | maps.c packet.c put.c text.c textutil.c tile.c util.c\ | |
ca67e7b4 | 23 | events.c initial.c maps.c prim.c |
95f51977 C |
24 | |
25 | OBJS= bitpix.o copy.o cursor.o draw.o fill.o font.o\ | |
26 | put.o text.o textutil.o tile.o util.o\ | |
ca67e7b4 | 27 | events.o initial.o maps.o prim.o |
95f51977 | 28 | |
ca67e7b4 | 29 | all: libapollo.a |
95f51977 C |
30 | |
31 | site: | |
32 | rm -f font.o | |
33 | ||
34 | font.o: vssite.h ../libvs100/param.h | |
ca67e7b4 | 35 | ${OBJS}: Xapollo.h ../X/X.h ../X/vsinput.h ../X/Xdev.h |
95f51977 C |
36 | |
37 | # as this library is private to X, we should do nothing on install. | |
38 | ||
39 | install: all | |
40 | ||
41 | lint: | |
ca67e7b4 | 42 | lint -Capollo *.c |
95f51977 | 43 | |
ca67e7b4 C |
44 | libapollo.a: $(OBJS) |
45 | ar r libapollo.a $? | |
46 | @ranlib libapollo.a | |
95f51977 C |
47 | |
48 | clean: | |
ca67e7b4 | 49 | rm -f ERRS *.o libapollo.a *~ |
95f51977 C |
50 | |
51 | # This make depend entry will only work with newer C compiler than 4.2 | |
52 | depend: | |
53 | cc -M ${INCPATH} ${SRCS} | \ | |
54 | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ | |
55 | else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ | |
56 | else rec = rec " " $$2 } } \ | |
57 | END { print rec } ' > makedep | |
58 | echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep | |
59 | echo '$$r makedep' >>eddep | |
60 | echo 'w' >>eddep | |
61 | cp Makefile Makefile.bak | |
62 | ed - Makefile < eddep | |
63 | rm eddep makedep | |
64 | echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile | |
65 | echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile | |
66 | echo '# see make depend above' >> Makefile | |
67 | ||
68 | # DO NOT DELETE THIS LINE -- make depend uses it |