summaryrefslogtreecommitdiffstats
path: root/adventure/Makefile
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-02-17 14:05:02 -0500
committerCameron Katri <me@cameronkatri.com>2021-02-22 09:20:17 -0500
commit08eca96e71d96ad1f8e9b888875ab5570f208d19 (patch)
tree9cace520fa50d9ef5bb77c2d7ebdde40e6b40f7f /adventure/Makefile
parent3f650c87c6ee6692ad6a558bb03ccf3364fe794a (diff)
downloadbsdgames-darwin-08eca96e71d96ad1f8e9b888875ab5570f208d19.tar.gz
bsdgames-darwin-08eca96e71d96ad1f8e9b888875ab5570f208d19.tar.zst
bsdgames-darwin-08eca96e71d96ad1f8e9b888875ab5570f208d19.zip
Get all the games compiling for iOS
Diffstat (limited to 'adventure/Makefile')
-rw-r--r--adventure/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/adventure/Makefile b/adventure/Makefile
index 8f3467e0..83bc8dd7 100644
--- a/adventure/Makefile
+++ b/adventure/Makefile
@@ -4,16 +4,25 @@
PROG= adventure
SRCS= main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c
MAN= adventure.6
-HIDEGAME=hidegame
-CLEANFILES+=mkdata setup.lo data.c
+CLEANFILES+=mkdata data.c
+
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) -o $(PROG) $(SRCS)
+ $(STRIP) $(PROG)
data.c: glorkz mkdata
- ${_MKTARGET_CREATE}
- ./mkdata ${.CURDIR}/glorkz > data.c
+ ./mkdata glorkz > data.c
+
+mkdata: setup.c
+ clang -o mkdata setup.c
+
+install: $(PROG) $(MAN)
+ $(GINSTALL) -Dm755 $(PROG) $(DESTDIR)/usr/games/$(PROG)
+ $(GINSTALL) -Dm644 $(MAN) $(DESTDIR)/usr/share/man/man6/$(MAN)
-setup.lo: hdr.h
-mkdata: setup.lo
- ${_MKTARGET_LINK}
- ${HOST_LINK.c} -o ${.TARGET} ${.ALLSRC}
+clean:
+ rm -f $(CLEANFILES) $(PROG)
-.include <bsd.prog.mk>
+.PHONY: all clean install