shithub: cstory

Download patch

ref: 72ca3bb20732e83543cad5b944cea02958796200
parent: 136de4805728e9baf48582aa9166d934f106b9f6
author: Jacob Moody <moody@posixcafe.org>
date: Thu Dec 21 01:56:37 EST 2023

make sure we create src/Resource/* subdirs

also we don't need SDL2 from NPE so lets remove that.

--- a/mkfile
+++ b/mkfile
@@ -1,6 +1,6 @@
 </$objtype/mkfile
 
-CFLAGS=-Fpw -I/sys/include/npe -I/sys/include/npe/SDL2 -D__plan9__ -D__${objtype}__ -DFIX_BUGS -DFIX_MAJOR_BUGS
+CFLAGS=-Fpw -I/sys/include/npe -D__plan9__ -D__${objtype}__ -DFIX_BUGS -DFIX_MAJOR_BUGS
 BIN=/$objtype/bin/games
 TARG=cstory
 
@@ -169,6 +169,7 @@
 
 $O.bin2h:	bin2h/bin2h.$O
 	$LD $LDFLAGS -o $target $prereq
+	mkdir -p src/Resource/^(BITMAP CURSOR ICON ORG WAVE)
 
 src/Resource/%.h:	$O.bin2h assets/resources/$stem
 	$O.bin2h assets/resources/$stem $target