diff options
-rw-r--r-- | makefiles/gmake/platform.mk | 20 | ||||
-rw-r--r-- | tests/daemon/GNUmakefile | 4 |
2 files changed, 22 insertions, 2 deletions
diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk index 36d4d63..f9d6ec7 100644 --- a/makefiles/gmake/platform.mk +++ b/makefiles/gmake/platform.mk @@ -121,3 +121,23 @@ endif PLATFORM_COMPILE_FLAGS += \ -DENABLE_NLS=$(ENABLE_NLS) + +# command line parser generator gengetopt +######################################## + +# location of gengetopt (default: in the path) +GENGETOPT=gengetopt + +# some platform either have no getopt/getopt_long or a broken one, so +# gengetopt can include its own one + +GENGETOPT_INCLUDE_GETOPT = + +ifeq "$(PLATFORM)" "SUNOS" +ifeq "$(OS_MAJOR_VERSION)" "5" +ifeq "$(OS_MINOR_VERSION)" "8" +GENGETOPT_INCLUDE_GETOPT = --include-getopt +endif +endif + +endif diff --git a/tests/daemon/GNUmakefile b/tests/daemon/GNUmakefile index d979263..1ec54b3 100644 --- a/tests/daemon/GNUmakefile +++ b/tests/daemon/GNUmakefile @@ -18,9 +18,9 @@ TEST_OBJS = \ # 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 -i $< + gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< testd_cmdline.c : testd.ggo - gengetopt --file-name testd_cmdline --conf-parser -i $< + gengetopt --file-name testd_cmdline --conf-parser $(GENGETOPT_INCLUDE_GETOPT) -i $< testd_cmdline.o : testd_cmdline.c testd_cmdline.h $(CC) -c -o $@ $< |