netsurf/frontends/monkey/Makefile
Daniel Silverstone e6c666d4f4
chore: Perform sslcert_viewer-ectomy
This removes the sslcert_viewer entirely from the code. Where
possible I've also trimmed out of frontends any code I think
should not be present.

Frontends should check and remove any further references that I
have failed to catch.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 09:01:39 +01:00

74 lines
2.2 KiB
Makefile

#
# Makefile for NetSurf monkey target
#
# This file is part of NetSurf
# ----------------------------------------------------------------------------
# Monkey flag setup (using pkg-config)
# ----------------------------------------------------------------------------
CWARNFLAGS += -Werror
CFLAGS += -std=c99 \
-Dmonkey -Dnsmonkey -g \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
LDFLAGS += -lm
# ---------------------------------------------------------------------------
# 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
# ----------------------------------------------------------------------------
# Source file setup
# ----------------------------------------------------------------------------
# S_MONKEY are sources purely for the MONKEY build
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
# Note this is deliberately *not* expanded here as common and image
# are not yet available
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_FRONTEND)
EXETARGET := nsmonkey
# ----------------------------------------------------------------------------
# Install target
# ----------------------------------------------------------------------------
install-monkey:
# ----------------------------------------------------------------------------
# Package target
# ----------------------------------------------------------------------------
package-monkey: