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