diff options
author | B. Watson <yalhcru@gmail.com> | 2015-05-07 17:30:06 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2015-05-07 17:30:06 -0400 |
commit | ee67778ca3abc6a091e5585e4c44d7c1a39e5833 (patch) | |
tree | e902d9df62c0d5b6b97cec367dfc4dacc739f115 /Makefile | |
parent | 586b16e2a0cdf79a5c470cd4e9abd8a8f55ceab6 (diff) | |
download | bsd-games-extra-master.tar.gz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -17,6 +17,13 @@ PMAKE=pmake INC:=$(shell pwd)/include CFLAGS="$(OPTFLAGS) -I$(INC) -include bsdcompat.h -std=gnu99" +# Slackware64's pmake ships with broken includes. +ifeq ($(shell uname -m),x86_64) +PMAKEHACK="MAKESYSPATH=$(shell pwd)/pmake.hack" +else +PMAKEHACK=/usr/share/mk +endif + # Which games are we building? DIRS=boggle bs cgram ching colorbars \ dab dm grdc hack hals_end larn \ @@ -33,10 +40,12 @@ SGIDBINS=tetris rogue hack SAVEDIRS=hackdir larn all: - for dir in $(DIRS); do ( cd $$dir && $(PMAKE) CFLAGS=$(CFLAGS) ); done + export $(PMAKEHACK) ; \ + for dir in $(DIRS); do ( cd $$dir && $(PMAKE) CFLAGS=$(CFLAGS) ); done ; \ [ -x boggle/mkdict/mkdict ] && cd boggle && $(PMAKE) realall clean: + export $(PMAKEHACK) ; \ for dir in $(DIRS); do ( cd $$dir && $(PMAKE) clean ); done install: install_files fix_perms |