summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/daemon/GNUmakefile9
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