root=..
sources=genoptions.ggo options.cc 
subdirs=

include $(root)/Makefile.inc

%.c: %.ggo
	gengetopt -i$< -F$(basename $@ .c) --unamed-opts 
#	patch $@ usage.patch
	echo $(DEBUGFLAGS)

%.h: %.ggo
	gengetopt -i$< -F$(basename $@ .c) --unamed-opts 
	rm genoptions_*.c
# as generating .h hase a side-effect (generates .c file as well) and I want
# have it pached, I use this
