From cd1d6378a2b53021b0be2b17eca63d7c47931822 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 Jun 2010 22:02:56 +0200 Subject: fixed pcc on linux (gengetopt and generated code, __attribute__ infection of header files) --- tests/daemon/GNUmakefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/daemon/GNUmakefile b/tests/daemon/GNUmakefile index d352fbd..2971c08 100644 --- a/tests/daemon/GNUmakefile +++ b/tests/daemon/GNUmakefile @@ -26,12 +26,15 @@ GETTEXT_TRIGGERS = _ gettext_noop gettext # ABa: currently a special rule for cmdline.c as gengetopt is not # completly fixed yet testd_cmdline.h : testd.ggo - gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< + gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< && \ + sed 's/#include /#include "port\/stdio.h"/g' < $@ > _tmp && mv _tmp $@ + testd_cmdline.c : testd.ggo - gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< + gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< && \ + sed 's/#include /#include "port\/stdio.h"/g' < $@ > _tmp && mv _tmp $@ testd_cmdline.o : testd_cmdline.c testd_cmdline.h - $(CC) -c -o $@ $< + $(CC) $(INCLUDE_DIRS) -c -o $@ $< testd: $(TOPDIR)/src/libwolf.a testd_cmdline.o -- cgit v1.2.3-54-g00ecf