2012-08-23 14:46:31 +04:00
|
|
|
#
|
|
|
|
# Makefile for NetSurf monkey target
|
|
|
|
#
|
|
|
|
# This file is part of NetSurf
|
|
|
|
|
2011-03-12 18:08:07 +03:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Monkey flag setup (using pkg-config)
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2014-09-05 19:01:44 +04:00
|
|
|
CWARNFLAGS += -Werror
|
|
|
|
|
|
|
|
CFLAGS += -std=c99 -Dmonkey -Dnsmonkey -g \
|
|
|
|
-D_BSD_SOURCE \
|
2015-03-28 21:15:27 +03:00
|
|
|
-D_DEFAULT_SOURCE \
|
2015-05-03 16:56:42 +03:00
|
|
|
-D_XOPEN_SOURCE=700 \
|
2015-05-03 16:46:29 +03:00
|
|
|
-D_POSIX_C_SOURCE=200809L \
|
2014-09-05 19:01:44 +04:00
|
|
|
-D_NETBSD_SOURCE \
|
2015-05-03 16:56:42 +03:00
|
|
|
-DMONKEY_RESPATH=\"$(NETSURF_MONKEY_RESOURCES)\"
|
|
|
|
|
|
|
|
LDFLAGS += -lm
|
2014-09-05 19:01:44 +04:00
|
|
|
|
2012-12-13 20:31:05 +04:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Windows flag setup
|
|
|
|
# ---------------------------------------------------------------------------
|
2011-03-12 18:08:07 +03:00
|
|
|
|
2012-12-13 20:31:05 +04:00
|
|
|
ifeq ($(HOST),Windows_NT)
|
|
|
|
CFLAGS += -U__STRICT_ANSI__
|
|
|
|
endif
|
2011-03-12 18:08:07 +03:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# 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 \
|
2016-04-24 12:23:51 +03:00
|
|
|
download.c 401login.c cert.c layout.c dispatch.c fetch.c
|
2011-03-12 18:08:07 +03:00
|
|
|
|
|
|
|
|
2011-08-28 18:29:15 +04: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-06 00:28:51 +03:00
|
|
|
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_FRONTEND)
|
2011-03-12 18:08:07 +03:00
|
|
|
EXETARGET := nsmonkey
|
2012-08-23 14:46:31 +04:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Install target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
install-monkey:
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Package target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
package-monkey:
|