
/*
    xskat - a card game for 1 to 3 players.
    Copyright (C) 1998  Gunter Gerhardt

    This program is free software; you can redistribute it freely.
    Use it at your own risk; there is NO WARRANTY.
*/

DEFINES=-DDEFAULT_LANGUAGE=\"german\"
/*DEFINES=-DDEFAULT_LANGUAGE=\"english\"*/

LOCAL_LIBRARIES=$(XLIBONLY)

OBJS=skat.o ramsch.o null.o bitmaps.o xio.o xdial.o text.o
SRCS=skat.c ramsch.c null.c bitmaps.c xio.c xdial.c text.c

ComplexProgramTarget(xskat)

ckdef:
	@echo Checking defs.h;\
	sed -n "1,/######/p" defs.h > defs;\
	cat *.c|sed  -n 's/^\([a-zA-Z].*\)(.*)/\1();/p' >> defs;\
	diff defs defs.h || mv defs defs.h;\
	rm -f defs

bitmaps.h: bwcards.xbm colcards.xbm bwcardl.xbm colcardl.xbm icon.xbm
	@echo Generating $@;\
	(echo "/* Generated file. Don't edit. */";\
	echo "extern char colcards_pixs[];";\
	echo "extern char colcardl_pixs[];";\
	for bitmap in bwcards colcards bwcardl colcardl icon;\
	do\
		egrep width"|"height < $$bitmap.xbm;\
		echo "extern char $${bitmap}_bits[];";\
	done) > $@
