summaryrefslogtreecommitdiff
path: root/frontends/fltk/Makefile
blob: 1cfb278f8c455d2774fb914bb08001c8b9f730a9 (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
#
# Makefile for NetSurf ftlk target
#
# This file is part of NetSurf
#
# ----------------------------------------------------------------------------
# FLTK flag setup (using pkg-config)
# ----------------------------------------------------------------------------

CXXFLAGS += -DFLTK_RESPATH=\"$(NETSURF_FLTK_RES_PATH)\"

# fltk does not ship a pkg-config file, instead it has its own program

FLTKCONFIG   = fltk-config
CXXFLAGS += $(shell $(FLTKCONFIG) --cxxflags)
LDFLAGS += -lstdc++ $(shell $(FLTKCONFIG) --ldstaticflags)

# ---------------------------------------------------------------------------
# Target setup
# ---------------------------------------------------------------------------

# The binary target.
EXETARGET := nsfltk

# ----------------------------------------------------------------------------
# Source file setup
# ----------------------------------------------------------------------------

# S_FRONTEND are sources purely for the FLTK frontend
S_FRONTEND := main.cpp misc.cpp window.cpp fetch.cpp bitmap.cpp layout.cpp plotters.cpp resources.cpp

# 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_RESOURCE) $(S_FRONTEND)