|
|
1.1 ! root 1: # ! 2: # $Header: Makefile,v 10.4 86/12/17 20:40:35 swick Exp $ ! 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: DEFINES = -DRAW_KBD ! 12: ! 13: INCPATH=-I. -I../include ! 14: OPT=-O ! 15: CFLAGS= ${OPT} ${INCPATH} ${DEFINES} ! 16: #CFLAGS= -g ${INCPATH} ! 17: C2 = /lib/c2 ! 18: ! 19: SRCS= bitpix.c copy.c cursor.c draw.c fill.c font.c\ ! 20: maps.c packet.c put.c text.c textutil.c tile.c util.c\ ! 21: events.c initial.c maps.c ! 22: ! 23: OBJS= bitpix.o copy.o cursor.o draw.o fill.o font.o\ ! 24: put.o text.o textutil.o tile.o util.o\ ! 25: events.o initial.o maps.o ! 26: ! 27: all: libsun.a ! 28: ! 29: site: ! 30: rm -f font.o ! 31: ! 32: font.o: vssite.h ../libvs100/param.h ! 33: ${OBJS}: Xsun.h ../X/X.h ../X/vsinput.h ../X/Xdev.h ! 34: ! 35: # as this library is private to X, we should do nothing on install. ! 36: ! 37: install: all ! 38: ! 39: lint: ! 40: lint -Csun *.c ! 41: ! 42: libsun.a: $(OBJS) ! 43: ar r libsun.a $? ! 44: @ranlib libsun.a ! 45: ! 46: clean: ! 47: rm -f ERRS *.o libsun.a *~ ! 48: ! 49: # This make depend entry will only work with newer C compiler than 4.2 ! 50: depend: ! 51: cc -M ${INCPATH} ${SRCS} | \ ! 52: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ ! 53: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 54: else rec = rec " " $$2 } } \ ! 55: END { print rec } ' > makedep ! 56: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 57: echo '$$r makedep' >>eddep ! 58: echo 'w' >>eddep ! 59: cp Makefile Makefile.bak ! 60: ed - Makefile < eddep ! 61: rm eddep makedep ! 62: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 63: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 64: echo '# see make depend above' >> Makefile ! 65: ! 66: # 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.