]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - primes/Makefile
avoid duplicating symbols in libterminfo.
[bsdgames-darwin.git] / primes / Makefile
index 72627b8cfc2ba72372e6b81982605d527e0badc8..b20aad421836f50f4f301f232994def6aba178d5 100644 (file)
@@ -1,10 +1,21 @@
-#      $NetBSD: Makefile,v 1.4 1999/02/13 02:54:22 lukem Exp $
+#      $NetBSD: Makefile,v 1.8 2014/10/02 21:36:37 ast Exp $
 #      @(#)Makefile    8.1 (Berkeley) 5/31/93
 
-PROG=  primes
-SRCS=  pattern.c pr_tbl.c primes.c
-MKMAN= no
-DPADD= ${LIBM}
-LDADD= -lm
+PROG=          primes
+SRCS=          pattern.c pr_tbl.c primes.c spsp.c
+MAN=           primes.6
 
-.include <bsd.prog.mk>
+all: $(PROG)
+
+$(PROG): $(SRCS)
+       $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
+       $(STRIP) $(PROG)
+
+install: $(PROG) $(MAN)
+       $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/$(PREFIX)/games/$(PROG)
+       $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/$(PREFIX)/share/man/man6/$(MAN)
+
+clean:
+       rm -f $(CLEANFILES) $(PROG)
+
+.PHONY: all clean install