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 --- adventure/Makefile | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'adventure/Makefile') 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 +.PHONY: all clean install -- cgit v1.2.3-56-ge451