From 08eca96e71d96ad1f8e9b888875ab5570f208d19 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Wed, 17 Feb 2021 14:05:02 -0500 Subject: Get all the games compiling for iOS --- primes/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'primes') diff --git a/primes/Makefile b/primes/Makefile index 8ed845cd..e0f0dad6 100644 --- a/primes/Makefile +++ b/primes/Makefile @@ -4,7 +4,18 @@ PROG= primes SRCS= pattern.c pr_tbl.c primes.c spsp.c MAN= primes.6 -DPADD= ${LIBM} -LDADD= -lm -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) + $(STRIP) $(PROG) + +install: $(PROG) $(MAN) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install -- cgit v1.2.3