From ef6f6427a263627de1d0fed22d8f367b15e2fb1a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 22 Apr 2018 16:45:34 +0100 Subject: Recipe: centralise dependencies for latin.c. It's silly to have every puzzle using latin.c separately specify in its .R file the list of additional modules that latin.c depends on, or for that matter to have them all have to separately know how to adjust that for the STANDALONE_SOLVER mode of latin.c. So I've centralised a new pair of definitions into the core Recipe file, called LATIN and LATIN_SOLVER, and now a client of latin.c need only ask for that to get all the necessary dependencies too. Also, while I'm here, I've moved the non-puzzle-specific 'latincheck' test program out of unequal.R into the central Recipe. --- Recipe | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Recipe') diff --git a/Recipe b/Recipe index 3b57ef5..a7db32b 100644 --- a/Recipe +++ b/Recipe @@ -31,6 +31,10 @@ STANDALONE = nullfe random misc malloc ALL = list +LATIN_DEPS = maxflow tree234 +LATIN = latin LATIN_DEPS +LATIN_SOLVER = latin[STANDALONE_SOLVER] LATIN_DEPS + # First half of list.c. !begin >list.c /* @@ -61,6 +65,10 @@ const int gamecount = lenof(gamelist); # Unix standalone application for special-purpose obfuscation. obfusc : [U] obfusc STANDALONE +# Test program built from latin.c. +latincheck : [U] latin[STANDALONE_LATIN_TEST] LATIN_DEPS STANDALONE +latincheck : [C] latin[STANDALONE_LATIN_TEST] LATIN_DEPS STANDALONE + puzzles : [G] windows[COMBINED] WINDOWS_COMMON COMMON ALL noicon.res # Mac OS X unified application containing all the puzzles. -- cgit v1.1