Commit | Line | Data |
---|---|---|
9730721d KB |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
3 | # All rights reserved. | |
4 | # | |
5 | # Redistribution and use in source and binary forms are permitted | |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
9 | # software without specific prior written permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
dc0e9d50 | 12 | # @(#)Makefile 5.2 (Berkeley) %G% |
9730721d KB |
13 | # |
14 | CFLAGS= -DHERE=TAHOE -DTARGET=TAHOE -DFAMILY=PCC -DUCBVAXASM \ | |
15 | -DUCBPASS2 -O -I$(INCLDIR)/usr/include -I../include | |
16 | LIBC= /lib/libc.a | |
17 | SRCS= f77.c | |
18 | OBJS= f77.o | |
19 | ||
20 | all: f77 | |
21 | ||
22 | f77: ${SRCS} ${LIBC} | |
23 | ${CC} -o $@ ${CFLAGS} ${SRCS} | |
24 | ||
dc0e9d50 | 25 | clean: |
9730721d KB |
26 | rm -f ${OBJS} core f77 |
27 | ||
dc0e9d50 KB |
28 | cleandir: clean |
29 | rm -f ${MAN} tags .depend | |
30 | ||
31 | depend: ${SRCS} | |
9730721d KB |
32 | mkdep -p ${CFLAGS} ${SRCS} |
33 | ||
dc0e9d50 KB |
34 | install: ${MAN} |
35 | install -s -o bin -g bin -m 755 f77 ${DESTDIR}/usr/bin | |
9730721d | 36 | |
dc0e9d50 | 37 | lint: ${SRCS} |
9730721d KB |
38 | lint ${CFLAGS} ${SRCS} |
39 | ||
dc0e9d50 | 40 | tags: ${SRCS} |
9730721d | 41 | ctags ${SRCS} |