X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3f98cd5a40321c18f87e4e732a75f56cc187cb1f..2ddfae80641ff95141e3a9e7f0b525b340345862:/Recipe diff --git a/Recipe b/Recipe index c946a8d..2decb2f 100644 --- a/Recipe +++ b/Recipe @@ -10,9 +10,12 @@ !makefile gtk Makefile !makefile vc Makefile.vc +!makefile wce Makefile.wce !makefile cygwin Makefile.cyg !makefile osx Makefile.osx +!srcdir icons/ + WINDOWS = windows printing + user32.lib gdi32.lib comctl32.lib comdlg32.lib winspool.lib COMMON = midend drawing misc malloc random version @@ -87,6 +90,11 @@ version.obj: *.c *.h cl $(VER) $(CFLAGS) /c version.c !end !specialobj vc version +!begin wce +version.obj: *.c *.h + $(CC) $(VER) $(CFLAGS) /c version.c +!end +!specialobj wce version !begin cygwin version.o: FORCE; FORCE: @@ -100,7 +108,7 @@ version.o: FORCE; FORCE: if test -z "$(VER)" && test -f manifest && md5sum -c manifest; then \ $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \ - elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \ + elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \ else \ $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \ @@ -111,14 +119,23 @@ FORCE: # md5sum readily available. We do, however, have `md5 -r' which # generates _nearly_ the same output, but it has no check function. !begin osx -version.o: FORCE; +version.ppc.o: FORCE; FORCE: if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \ - $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c; \ - elif test -z "$(VER)" && test -d .svn && svnversion . >&/dev/null; then \ - $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c; \ + $(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c -o version.ppc.o; \ + elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ + $(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c -o version.ppc.o; \ else \ - $(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c; \ + $(CC) -arch ppc $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c -o version.ppc.o; \ + fi +version.i386.o: FORCE2; +FORCE2: + if test -z "$(VER)" && test -f manifest && (md5 -r `awk '{print $$2}' manifest` | diff -w manifest -); then \ + $(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) `cat version.def` -c version.c -o version.i386.o; \ + elif test -z "$(VER)" && test -d .svn && svnversion . >/dev/null 2>&1; then \ + $(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) "-DREVISION=`svnversion .`" -c version.c -o version.i386.o; \ + else \ + $(CC) -arch i386 $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c version.c -o version.i386.o; \ fi !end !specialobj osx version