X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=Makefile;h=e039865dbac58ee57d5000b72767abf7f9cdc3d8;hp=674ff307ba8636864bd861961d8e3c1999bdf8bf;hb=6c043b44a1cec206f3b4f8063fb8383e66ae6d53;hpb=df32293ac0a021f4d46c924e842c2d89a2463ae6 diff --git a/Makefile b/Makefile index 674ff30..e039865 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -objects := osl.o fd.o rbtree.o string.o adu.o sha1.o +objects := osl.o fd.o rbtree.o string.o adu.o sha1.o cmdline.o all: adu DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W @@ -21,6 +21,13 @@ Makefile.deps: $(wildcard *.c *.h) adu: $(objects) $(CC) -o $@ $(objects) -lcrypto +cmdline.o: cmdline.c cmdline.h + $(CC) -c $(CPPFLAGS) $< + +cmdline.c cmdline.h: adu.ggo + gengetopt --conf-parser < $< + + %.o: %.c Makefile $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) $<