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 --- ching/Makefile | 8 +++++++- ching/Makefile.inc | 5 ----- ching/castching/Makefile | 16 ++++++++++++++-- ching/ching/Makefile | 14 +++++++++----- ching/printching/Makefile | 17 ++++++++++++++--- 5 files changed, 44 insertions(+), 16 deletions(-) delete mode 100644 ching/Makefile.inc (limited to 'ching') diff --git a/ching/Makefile b/ching/Makefile index ab7834fb..68f38c00 100644 --- a/ching/Makefile +++ b/ching/Makefile @@ -1,5 +1,11 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ SUBDIR= ching castching printching +TOPTARGETS= all clean install -.include +$(TOPTARGETS): $(SUBDIR) + +$(SUBDIR): + $(MAKE) -C $@ $(MAKECMDGOALS) + +.PHONY: $(TOPTARGETS) $(SUBDIR) diff --git a/ching/Makefile.inc b/ching/Makefile.inc deleted file mode 100644 index b4674a6e..00000000 --- a/ching/Makefile.inc +++ /dev/null @@ -1,5 +0,0 @@ -# $NetBSD: Makefile.inc,v 1.3 2013/08/11 03:27:02 dholland Exp $ - -CPPFLAGS+=-I${.CURDIR}/../include -BINDIR?=/usr/games -WARNS?=5 diff --git a/ching/castching/Makefile b/ching/castching/Makefile index dd84fc9e..905a9e32 100644 --- a/ching/castching/Makefile +++ b/ching/castching/Makefile @@ -1,7 +1,19 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ PROG= castching -NOMAN= # defined +SRCS= castching.c BINDIR= /usr/libexec/ching -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include + $(STRIP) $(PROG) + +install: $(PROG) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/libexec/ching/$(PROG) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install diff --git a/ching/ching/Makefile b/ching/ching/Makefile index 85559c1e..cd5d7eff 100644 --- a/ching/ching/Makefile +++ b/ching/ching/Makefile @@ -3,11 +3,15 @@ SCRIPTS=ching.sh MAN= ching.6 -.include - -.if ${MKSHARE} != "no" FILES= hexagrams macros FILESDIR=/usr/share/games/ching -.endif -.include +all: + +install: $(PROG) $(MAN) $(SCRIPTS) + $(GINSTALL) -Dm755 $(SCRIPTS) $(DESTDIR)/usr/games/$(basename $(SCRIPTS)) + $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN) + $(GINSTALL) -d $(DESTDIR)$(FILESDIR) + $(GINSTALL) -Dm644 $(FILES) $(DESTDIR)$(FILESDIR) + +.PHONY: all install clean diff --git a/ching/printching/Makefile b/ching/printching/Makefile index 8ccb39bb..4adbc181 100644 --- a/ching/printching/Makefile +++ b/ching/printching/Makefile @@ -1,7 +1,18 @@ # $NetBSD: Makefile,v 1.1 2005/06/30 13:30:33 perry Exp $ PROG= printching -NOMAN= # defined -BINDIR= /usr/libexec/ching +SRCS= printching.c -.include +all: $(PROG) + +$(PROG): $(SRCS) + $(CC) $(CFLAGS) -o $(PROG) $(SRCS) -I../include + $(STRIP) $(PROG) + +install: $(PROG) + $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/libexec/ching/$(PROG) + +clean: + rm -f $(CLEANFILES) $(PROG) + +.PHONY: all clean install -- cgit v1.2.3-56-ge451