summaryrefslogtreecommitdiff
path: root/frontends/monkey/Makefile
blob: d49a6c5f4037112b145100cf0c06ae146640ab8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# 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

# ---------------------------------------------------------------------------
# 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 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
SOURCES = $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_FRONTEND)
EXETARGET := nsmonkey

# ----------------------------------------------------------------------------
# Install target
# ----------------------------------------------------------------------------

install-monkey:

# ----------------------------------------------------------------------------
# Package target
# ----------------------------------------------------------------------------

package-monkey: