1# 2# Copyright (c) 1982 Regents of the University of California. 3# All rights reserved. The Berkeley software License Agreement 4# specifies the terms and conditions for redistribution. 5# 6# @(#)Makefile 1.3 (Berkeley) 02/24/86 7# 8DESTDIR= 9CFLAGS= -O 10INCPATH=-I. 11LFLAGS= 12 13# The program itself 14# 15PROG= inline 16 17# Sources 18# 19SRCS= main.c machdep.c machpats.c libcpats.c langpats.c 20 21# Objects 22# 23OBJS= main.o machdep.o machpats.o libcpats.o langpats.o 24 25# Header files 26# 27HDRS= inline.h 28 29${PROG}: ${OBJS} ${HDRS} 30 cc ${LFLAGS} -o ${PROG} ${OBJS} 31 32${OBJS}: 33 cc ${CFLAGS} ${INCPATH} -c $*.c 34 35install: ${PROG} 36# install ${PROG} ../inline 37 38clean: 39 rm -f a.out core ${OBJS} ${PROG} 40 41print: 42 @pr ${HDRS} ${SRCS} 43 44lint: 45 lint ${SRCS} 46 47depend: 48 cc -M ${INCPATH} ${SRCS} | \ 49 awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ 50 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ 51 else rec = rec " " $$2 } } \ 52 END { print rec } ' > makedep 53 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep 54 echo '$$r makedep' >>eddep 55 echo 'w' >>eddep 56 cp Makefile Makefile.bak 57 ed - Makefile < eddep 58 rm eddep makedep 59 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile 60 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile 61 echo '# see make depend above' >> Makefile 62 63# DO NOT DELETE THIS LINE -- make depend uses it 64 65 66main.o: main.c /usr/include/stdio.h /usr/include/ctype.h ./inline.h 67machdep.o: machdep.c /usr/include/stdio.h /usr/include/ctype.h 68machpats.o: machpats.c ./inline.h 69libcpats.o: libcpats.c ./inline.h 70langpats.o: langpats.c ./inline.h 71# DEPENDENCIES MUST END AT END OF FILE 72# IF YOU PUT STUFF HERE IT WILL GO AWAY 73# see make depend above 74