]> git.cameronkatri.com Git - bsdgames-darwin.git/blob - primes/Makefile
cgram: rewrite completely, fixing bugs and style
[bsdgames-darwin.git] / primes / Makefile
1 # $NetBSD: Makefile,v 1.8 2014/10/02 21:36:37 ast Exp $
2 # @(#)Makefile 8.1 (Berkeley) 5/31/93
3
4 PROG= primes
5 SRCS= pattern.c pr_tbl.c primes.c spsp.c
6 MAN= primes.6
7
8 all: $(PROG)
9
10 $(PROG): $(SRCS)
11 $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
12 $(STRIP) $(PROG)
13
14 install: $(PROG) $(MAN)
15 $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
16 $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
17
18 clean:
19 rm -f $(CLEANFILES) $(PROG)
20
21 .PHONY: all clean install