xref: /original-bsd/usr.bin/calendar/Makefile (revision cd18b70b)
1#
2# Copyright (c) 1987 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	4.3	(Berkeley)	06/19/87
7#
8CFLAGS=	-O
9LIBC=	/lib/libc.a
10SRCS=	calendar.c
11OBJS=	calendar.o
12
13all: calendar
14
15calendar: calendar.c ${LIBC}
16	${CC} ${CFLAGS} -o $@ calendar.c
17
18clean: FRC
19	rm -f ${OBJS} core calendar
20
21depend: FRC
22	mkdep -p ${CFLAGS} ${SRCS}
23
24install: FRC
25	install -s -o bin -g bin -m 755 calendar ${DESTDIR}/usr/lib
26	install -c -o bin -g bin -m 755 calendar.sh ${DESTDIR}/usr/bin/calendar
27
28lint: FRC
29	lint ${CFLAGS} ${SRCS}
30
31tags: FRC
32	ctags ${SRCS}
33
34FRC:
35
36# DO NOT DELETE THIS LINE -- mkdep uses it.
37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
38
39calendar.o: calendar.c /usr/include/sys/time.h /usr/include/time.h
40
41# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
42