file reorg, pathnames.h, paths.h
[unix-history] / usr / src / games / factor / Makefile
CommitLineData
c995b84d
KB
1#
2# Copyright (c) 1988 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 the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation, advertising
8# materials, and other materials related to such redistribution and
9# use acknowledge that the software was developed by the University
10# of California, Berkeley. The name of the University may not be
11# used to endorse or promote products derived from this software
12# without specific prior written permission. THIS SOFTWARE IS PROVIDED
13# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
14# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
15# FITNESS FOR A PARTICULAR PURPOSE.
16#
7abf8d65 17# @(#)Makefile 5.3 (Berkeley) %G%
c995b84d
KB
18#
19
20CFLAGS= -O
21LIBC= /lib/libc.a
dbc5a270 22SRCS= factor.c primes.c
c995b84d
KB
23OBJS=
24MAN= factor.0
25
dbc5a270 26all: factor primes
c995b84d
KB
27
28factor: ${LIBC}
29 ${CC} -o $@ ${CFLAGS} $@.c
30
dbc5a270
KB
31primes: ${LIBC}
32 ${CC} -o $@ ${CFLAGS} $@.c -lm
33
c995b84d 34clean:
dbc5a270 35 rm -f ${OBJS} core factor primes
c995b84d
KB
36
37cleandir: clean
38 rm -f ${MAN} tags .depend
39
40depend: ${SRCS}
41 mkdep -p ${CFLAGS} ${SRCS}
42
43install: ${MAN}
dbc5a270 44 install -s -o bin -g bin -m 755 factor primes ${DESTDIR}/usr/games
c995b84d 45 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat6
7abf8d65
KB
46 rm -f ${DESTDIR}/usr/man/cat6/primes.0
47 ln ${DESTDIR}/usr/man/cat6/${MAN} ${DESTDIR}/usr/man/cat6/primes.0
c995b84d
KB
48
49lint: ${SRCS}
50 lint ${CFLAGS} ${SRCS}
51
52tags: ${SRCS}
53 ctags ${SRCS}