diff options
Diffstat (limited to 'frontends/monkey/Makefile')
-rw-r--r-- | frontends/monkey/Makefile | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/frontends/monkey/Makefile b/frontends/monkey/Makefile index 86f1d912e..d2dae3e16 100644 --- a/frontends/monkey/Makefile +++ b/frontends/monkey/Makefile @@ -9,20 +9,38 @@ CWARNFLAGS += -Werror -CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \ - -D_BSD_SOURCE \ - -D_DEFAULT_SOURCE \ - -D_XOPEN_SOURCE=700 \ - -D_POSIX_C_SOURCE=200809L \ - -D_NETBSD_SOURCE \ +CFLAGS += -std=c99 \ + -Dmonkey -Dnsmonkey -g \ -DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\" LDFLAGS += -lm # --------------------------------------------------------------------------- -# Windows flag setup +# Target setup # --------------------------------------------------------------------------- +# Path to monkey resources +MONKEY_RESOURCES_DIR := $(FRONTEND_RESOURCES_DIR) + +# The filter and target for split messages +MESSAGES_FILTER=monkey +MESSAGES_TARGET=$(MONKEY_RESOURCES_DIR) + +# --------------------------------------------------------------------------- +# HOST specific feature flags +# --------------------------------------------------------------------------- + +# enable POSIX and XSI features. +# everywhere but freebsd where the default set already has them enabled +ifneq ($(HOST),FreeBSD) + CFLAGS += -D_POSIX_C_SOURCE=200809L \ + -D_XOPEN_SOURCE=700 \ + -D_BSD_SOURCE \ + -D_DEFAULT_SOURCE \ + -D_NETBSD_SOURCE +endif + +# Windows flag setup ifeq ($(HOST),Windows_NT) CFLAGS += -U__STRICT_ANSI__ endif @@ -32,8 +50,8 @@ endif # ---------------------------------------------------------------------------- # S_MONKEY are sources purely for the MONKEY build -S_FRONTEND := main.c filetype.c schedule.c bitmap.c plot.c browser.c \ - download.c 401login.c cert.c layout.c dispatch.c fetch.c +S_FRONTEND := main.c output.c filetype.c schedule.c bitmap.c plot.c browser.c \ + download.c 401login.c layout.c dispatch.c fetch.c # This is the final source build list |