shithub: puzzles

ref: 3224333549a381765671e17c31043211ac6bd4c4
dir: /mkfile/

View raw version
</$objtype/mkfile

CFLAGS=$CFLAGS -p -I/sys/include/npe -D__plan9__ -D__${objtype}__ -DNO_TGMATH_H -I. # -D__plan9_keep_main__

TARG=\
	blackbox\
	bridges\
	cube\
	dominosa\
	fifteen\
	filling\
	flip\
	flood\
	galaxies\
	guess\
	inertia\
	keen\
	lightup\
	loopy\
	magnets\
	map\
	mines\
	mosaic\
	net\
	netslide\
	nullgame\
	palisade\
	pattern\
	pearl\
	pegs\
	range\
	rect\
	samegame\
	signpost\
	singles\
	sixteen\
	slant\
	solo\
	tents\
	towers\
	tracks\
	twiddle\
	undead\
	unequal\
	unruly\
	untangle\

OFILES=\
	combi.$O\
	divvy.$O\
	drawing.$O\
	dsf.$O\
	findloop.$O\
	grid.$O\
	hat.$O\
	latin.$O\
	laydomino.$O\
	loopgen.$O\
	malloc.$O\
	matching.$O\
	midend.$O\
	misc.$O\
	penrose-legacy.$O\
	penrose.$O\
	plan9.$O\
	printing.$O\
	ps.$O\
	random.$O\
	sort.$O\
	spectre.$O\
	tdq.$O\
	tree234.$O\
	version.$O\

HFILES=\
	grid.h\
	hat-internal.h\
	hat-tables.h\
	hat.h\
	latin.h\
	loopgen.h\
	matching.h\
	penrose-internal.h\
	penrose-legacy.h\
	penrose.h\
	puzzles.h\
	spectre-internal.h\
	spectre-tables-auto.h\
	spectre-tables-manual.h\
	spectre.h\
	tree234.h\
	version.h

LIB=\
	auxiliary/hatgen.$O\

BIN=/$objtype/bin/puzzles

</sys/src/cmd/mkmany

# LDFLAGS=$LDFLAGS -p

auxiliary/hatgen.$O: auxiliary/hatgen.c
	$CC $CFLAGS -o $target auxiliary/hatgen.c