BSD 4_3_Tahoe release
[unix-history] / usr / src / new / X / libapollo / Makefile
CommitLineData
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
15INCPATH=-I. -I../include
ca67e7b4
C
16OFLAG= -O
17CFLAGS= ${OFLAG} ${INCPATH}
95f51977
C
18#CFLAGS= -g ${INCPATH}
19C2 = /lib/c2
20
21SRCS= 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
25OBJS= 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 29all: libapollo.a
95f51977
C
30
31site:
32 rm -f font.o
33
34font.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
39install: all
40
41lint:
ca67e7b4 42 lint -Capollo *.c
95f51977 43
ca67e7b4
C
44libapollo.a: $(OBJS)
45 ar r libapollo.a $?
46 @ranlib libapollo.a
95f51977
C
47
48clean:
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
52depend:
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