netsurf/frontends/monkey/Makefile

63 lines
1.9 KiB
Makefile
Raw Normal View History

#
# Makefile for NetSurf monkey target
#
# This file is part of NetSurf
# ----------------------------------------------------------------------------
# Monkey flag setup (using pkg-config)
# ----------------------------------------------------------------------------
CWARNFLAGS += -Werror
2018-09-06 23:34:51 +03:00
CFLAGS += -std=c99 \
-Dmonkey -Dnsmonkey -g \
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
LDFLAGS += -lm
2012-12-13 20:31:05 +04:00
# ---------------------------------------------------------------------------
2018-09-06 23:34:51 +03:00
# HOST specific feature flags
2012-12-13 20:31:05 +04:00
# ---------------------------------------------------------------------------
2018-09-06 23:34:51 +03: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 20:31:05 +04:00
ifeq ($(HOST),Windows_NT)
CFLAGS += -U__STRICT_ANSI__
endif
# ----------------------------------------------------------------------------
# Source file setup
# ----------------------------------------------------------------------------
# S_MONKEY are sources purely for the MONKEY build
2016-05-06 00:28:51 +03:00
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
# This is the final source build list
# Note this is deliberately *not* expanded here as common and image
# are not yet available
2016-05-06 00:28:51 +03:00
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_FRONTEND)
EXETARGET := nsmonkey
# ----------------------------------------------------------------------------
# Install target
# ----------------------------------------------------------------------------
install-monkey:
# ----------------------------------------------------------------------------
# Package target
# ----------------------------------------------------------------------------
package-monkey: