X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/2c922baaa93dfa561986acace5008e7d78d8c1fb..23454acb66be2a88647262d98d50e0f115519ea0:/pom/Makefile diff --git a/pom/Makefile b/pom/Makefile index 755f2ea1..f436cc2e 100644 --- a/pom/Makefile +++ b/pom/Makefile @@ -3,7 +3,19 @@ PROG= pom MAN= pom.6 -DPADD= ${LIBM} -LDADD= -lm +SRCS= pom.c -.include +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