2012-08-23 11:46:31 +01:00
|
|
|
#
|
|
|
|
# Makefile for NetSurf monkey target
|
|
|
|
#
|
|
|
|
# This file is part of NetSurf
|
|
|
|
|
2011-03-12 15:08:07 +00:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Monkey flag setup (using pkg-config)
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2014-09-05 16:01:44 +01:00
|
|
|
CWARNFLAGS += -Werror
|
|
|
|
|
2018-09-06 21:34:51 +01:00
|
|
|
CFLAGS += -std=c99 \
|
|
|
|
-Dmonkey -Dnsmonkey -g \
|
2015-05-03 14:56:42 +01:00
|
|
|
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
|
|
|
|
|
|
|
|
LDFLAGS += -lm
|
2014-09-05 16:01:44 +01:00
|
|
|
|
2018-11-03 17:30:49 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# 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)
|
|
|
|
|
2012-12-13 16:31:05 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
2018-09-06 21:34:51 +01:00
|
|
|
# HOST specific feature flags
|
2012-12-13 16:31:05 +00:00
|
|
|
# ---------------------------------------------------------------------------
|
2011-03-12 15:08:07 +00:00
|
|
|
|
2018-09-06 21:34:51 +01:00
|
|
|
# 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
|
2012-12-13 16:31:05 +00:00
|
|
|
ifeq ($(HOST),Windows_NT)
|
|
|
|
CFLAGS += -U__STRICT_ANSI__
|
|
|
|
endif
|
2011-03-12 15:08:07 +00:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Source file setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# S_MONKEY are sources purely for the MONKEY build
|
2018-11-03 15:12:27 +00:00
|
|
|
S_FRONTEND := main.c output.c filetype.c schedule.c bitmap.c plot.c browser.c \
|
2020-05-22 09:01:39 +01:00
|
|
|
download.c 401login.c layout.c dispatch.c fetch.c
|
2011-03-12 15:08:07 +00:00
|
|
|
|
|
|
|
|
2011-08-28 14:29:15 +00:00
|
|
|
# This is the final source build list
|
|
|
|
# Note this is deliberately *not* expanded here as common and image
|
|
|
|
# are not yet available
|
2016-05-05 22:28:51 +01:00
|
|
|
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_FRONTEND)
|
2011-03-12 15:08:07 +00:00
|
|
|
EXETARGET := nsmonkey
|
2012-08-23 11:46:31 +01:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Install target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
install-monkey:
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Package target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
package-monkey:
|