diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-06-06 22:02:56 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-06-06 22:02:56 +0200 |
commit | cd1d6378a2b53021b0be2b17eca63d7c47931822 (patch) | |
tree | 4cffdc60100cdf81dde0c3402008e6dd641a8bad /tests | |
parent | f7869fb25b4e43f3c3ee0fe956de6d65c8d8de62 (diff) | |
download | wolfbones-cd1d6378a2b53021b0be2b17eca63d7c47931822.tar.gz wolfbones-cd1d6378a2b53021b0be2b17eca63d7c47931822.tar.bz2 |
fixed pcc on linux (gengetopt and generated code, __attribute__ infection of header files)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/daemon/GNUmakefile | 9 |
1 files changed, 6 insertions, 3 deletions
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 <stdio.h>/#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 <stdio.h>/#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 |