-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.options.Linux
70 lines (46 loc) · 1.88 KB
/
Makefile.options.Linux
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
63
64
65
66
67
68
69
# == SYSTEM BINARIES ==
AR ?= ar
ARFLAGS ?= cru
RANLIB ?= ranlib
CC ?= gcc
CXX ?= g++
INSTALL ?= /usr/bin/install
INSTALL_SH = ../install-sh
# == COMPILATION FLAGS ==
COMPILE = $(CC) $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
CFLAGS ?= -g -O2
CFLAGS += -DD_DNS_THREADED -D_REENTRANT -DHAVE_CONFIG -D_THREAD_SAFE -Wall -W -Wno-unused-parameter -Waggregate-return -Wl,--no-as-needed
INCLUDES ?= -I. -I.. -I/usr/local/include
LDFLAGS ?= -L/usr/local/lib
CXXCOMPILE = $(CXX) $(INCLUDES) $(CXXFLAGS)
CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
LIBFLTK_CFLAGS = -I/usr/X11R6/include/freetype2 -pipe -I/usr/X11R6/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
LIBFLTK_CXXFLAGS = $(LIBFLTK_CFLAGS) -fvisibility-inlines-hidden
LIBFLTK_LDFLAGS = $(LDFLAGS) -Wl,-rpath,/usr/local/lib -L/usr/X11R6/lib -lfltk -lXcursor -lXfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -lm -lX11 -lXdmcp -lXau
HTTPS_LDFLAGS = -lcrypto -lssl
LIBPNG16_CXXFLAGS = -I/usr/local/include/libpng16
DILLO_LDFLAGS = -ljpeg -L/usr/local/lib -lpng -Wl,-rpath,/usr/local/lib -L/usr/X11R6/lib -lfltk -lXcursor -lXfixes -lXext -lXft -lfontconfig -lXinerama -lpthread -lm -lX11 -lXdmcp -lXau -lz -lX11
# == HTTPS CERTS ==
CA_CERTS_FILE ?= /etc/ssl/cert.pem
CA_CERTS_DIR ?= /etc/ssl/
# == EXTERNAL TOOLS ==
DOWNLOADER_TOOL = wget
DOWNLOADER_USER_AGENT_ARG = -U
DOWNLOADER_CONTINUE_ARG = -c
DOWNLOADER_LOAD_COOKIES_ARG = --load_cookies
DOWNLOADER_OUTPUT_FILENAME_ARG = -O
ZIP_USE_7Z = 0
FTP_USE_WGET = 1
# == INSTALL PATHS ==
BINNAME = dillo-plus
PREFIX ?= /usr/local
LIBDIR = $(PREFIX)/lib/
DILLO_BINDIR = $(PREFIX)/bin/
DILLO_LIBDIR = $(PREFIX)/lib/$(BINNAME)/
DILLO_ETCDIR = $(PREFIX)/etc/$(BINNAME)/
DPIDRC_SYS = $(DILLO_ETCDIR)/dpidrc
DOC_PATH = $(PREFIX)/share/doc/$(BINNAME)
MAN_PATH = $(PREFIX)/share/man/man1
APP_PATH = $(PREFIX)/share/applications
ICON_PATH = $(PREFIX)/share/icons