2010-10-27 22:39:24 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Amiga target setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2014-06-19 21:27:24 +04:00
|
|
|
CFLAGS += -std=c99 -Dnsamiga
|
2011-03-10 00:52:53 +03:00
|
|
|
|
|
|
|
ifneq ($(SUBTARGET),os3)
|
2017-12-11 02:20:18 +03:00
|
|
|
CFLAGS += -O2 -mstrict-align -finline-functions -U__STRICT_ANSI__ -D__USE_INLINE__ -D__USE_BASETYPE__
|
2015-01-09 02:45:41 +03:00
|
|
|
else
|
2016-07-29 20:02:56 +03:00
|
|
|
CFLAGS += -O2 -DPATH_MAX=1024 -D__m68k__ -m68020
|
2011-03-10 00:52:53 +03:00
|
|
|
endif
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2016-06-25 23:36:45 +03:00
|
|
|
$(eval $(call feature_enabled,AMIGA_ICON,-DWITH_AMIGA_ICON,,Amiga icon))
|
|
|
|
$(eval $(call feature_enabled,AMIGA_DATATYPES,-DWITH_AMIGA_DATATYPES,,DataTypes))
|
2019-03-03 19:09:09 +03:00
|
|
|
$(eval $(call feature_enabled,AMISSL,-DWITH_AMISSL -D__NO_NET_API -D__NO_NETINCLUDE_ERRNO -I$(GCCSDK_INSTALL_ENV)/netinclude,-lamisslauto,AmiSSL))
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2016-06-25 23:36:45 +03:00
|
|
|
CFLAGS += -I$(GCCSDK_INSTALL_ENV)/include
|
|
|
|
CFLAGS += $(shell $(PKG_CONFIG) --cflags tre)
|
2010-12-30 00:26:45 +03:00
|
|
|
|
2019-04-08 20:44:44 +03:00
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --static --libs libcurl)
|
2016-06-25 23:36:45 +03:00
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs tre)
|
|
|
|
LDFLAGS += -L$(GCCSDK_INSTALL_ENV)/lib
|
2011-03-10 00:52:53 +03:00
|
|
|
|
2016-06-25 23:36:45 +03:00
|
|
|
LDFLAGS += -lpbl -liconv
|
2016-04-28 21:18:06 +03:00
|
|
|
|
2019-04-08 20:44:44 +03:00
|
|
|
ifeq ($(NETSURF_USE_OPENSSL),YES)
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --static --libs openssl)
|
|
|
|
endif
|
|
|
|
|
2016-06-25 23:36:45 +03:00
|
|
|
ifeq ($(SUBTARGET),os3)
|
|
|
|
LDFLAGS += -lamiga -lm
|
2010-10-29 04:54:27 +04:00
|
|
|
endif
|
|
|
|
|
2019-05-06 12:31:51 +03:00
|
|
|
COMMON_WARNFLAGS += -Wno-cast-align
|
|
|
|
|
2012-10-31 23:34:33 +04:00
|
|
|
EXETARGET := NetSurf
|
|
|
|
|
2015-04-07 02:28:27 +03:00
|
|
|
# The filter and target for split messages
|
|
|
|
MESSAGES_FILTER=ami
|
|
|
|
|
2010-10-29 04:54:27 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Source file setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2016-05-06 00:28:51 +03:00
|
|
|
# sources purely for the Amiga build
|
2017-01-08 03:40:40 +03:00
|
|
|
S_FRONTEND := gui.c history.c hotlist.c schedule.c file.c \
|
2019-08-14 14:23:04 +03:00
|
|
|
misc.c bitmap.c font.c filetype.c utf8.c memory.c \
|
2010-10-29 04:54:27 +04:00
|
|
|
plotters.c object.c menu.c save_pdf.c arexx.c version.c \
|
2016-05-06 00:28:51 +03:00
|
|
|
cookies.c ctxmenu.c clipboard.c help.c font_scan.c \
|
2013-05-28 20:50:06 +04:00
|
|
|
launch.c search.c history_local.c download.c iff_dr2d.c \
|
2014-11-08 22:23:02 +03:00
|
|
|
sslcert.c gui_options.c print.c theme.c drag.c icon.c libs.c \
|
2011-06-06 03:07:10 +04:00
|
|
|
datatypes.c dt_picture.c dt_anim.c dt_sound.c plugin_hack.c \
|
2015-01-20 23:36:14 +03:00
|
|
|
stringview/stringview.c stringview/urlhistory.c rtg.c \
|
2016-01-16 03:00:57 +03:00
|
|
|
agclass/amigaguide_class.c os3support.c font_diskfont.c \
|
2016-12-31 03:53:20 +03:00
|
|
|
selectmenu.c hash/xxhash.c font_cache.c font_bullet.c \
|
2017-01-15 19:05:07 +03:00
|
|
|
nsoption.c corewindow.c gui_menu.c
|
2010-10-29 04:54:27 +04: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_FRONTEND)
|
2012-08-15 22:58:36 +04:00
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Install target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2012-08-23 14:46:31 +04:00
|
|
|
install-amiga:
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Package target
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
package-amiga: netsurf.lha
|
2012-08-15 22:58:36 +04:00
|
|
|
|
2015-01-30 23:51:18 +03:00
|
|
|
AMIGA_LANGUAGES := de en it ja nl
|
2016-07-01 19:37:09 +03:00
|
|
|
AMIGA_PLATFORM_RESOURCES := Pointers Themes default.css default.css.info favicon.png LangNames mimetypes Resource.map splash.png
|
2018-04-22 13:28:08 +03:00
|
|
|
AMIGA_GENERIC_RESOURCES := $(AMIGA_LANGUAGES) ca-bundle icons
|
2018-04-22 12:51:43 +03:00
|
|
|
AMIGA_RESOURCES := $(addprefix $(FRONTEND_SOURCE_DIR)/resources/,$(AMIGA_PLATFORM_RESOURCES)) $(addprefix resources/,$(AMIGA_GENERIC_RESOURCES))
|
2016-05-06 00:28:51 +03:00
|
|
|
AMIGA_DISTRIBUTION_FILES := $(FRONTEND_SOURCE_DIR)/dist/*
|
2016-05-15 15:55:02 +03:00
|
|
|
AMIGA_PKG_DIR := $(FRONTEND_SOURCE_DIR)/pkg
|
2012-08-15 22:58:36 +04:00
|
|
|
AMIGA_INSTALL_TARGET_DIR := NetSurf_Amiga
|
|
|
|
|
2012-08-23 14:46:31 +04:00
|
|
|
netsurf.lha: $(EXETARGET)
|
2012-08-15 22:58:36 +04:00
|
|
|
$(VQ)echo Creating netsurf.lha
|
|
|
|
$(Q)rm -rf $(AMIGA_INSTALL_TARGET_DIR)
|
2017-01-07 16:21:25 +03:00
|
|
|
$(Q)$(MKDIR) -p $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
2012-10-12 00:33:49 +04:00
|
|
|
$(Q)cp -p $(EXETARGET) $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
2017-01-07 16:21:25 +03:00
|
|
|
$(Q)$(MKDIR) $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources
|
2016-09-08 01:12:52 +03:00
|
|
|
$(Q)cp -rp $(AMIGA_RESOURCES) $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources
|
2018-04-22 13:28:08 +03:00
|
|
|
$(Q)mv $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/icons $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/Icons
|
2016-09-08 01:12:52 +03:00
|
|
|
$(Q)cp -rp $(AMIGA_DISTRIBUTION_FILES) $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
2016-07-01 19:37:09 +03:00
|
|
|
$(Q)cat resources/SearchEngines $(AMIGA_PKG_DIR)/SearchEngines >$(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/SearchEngines
|
2018-04-22 13:37:33 +03:00
|
|
|
$(Q)cp -p resources/adblock.css $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/adblock.css
|
2018-04-22 12:51:43 +03:00
|
|
|
$(Q)cp -p resources/default.css $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/nsdefault.css
|
|
|
|
$(Q)cp -p resources/internal.css $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/internal.css
|
|
|
|
$(Q)cp -p resources/quirks.css $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/quirks.css
|
|
|
|
$(Q)cp -p resources/netsurf.png $(AMIGA_INSTALL_TARGET_DIR)/NetSurf/Resources/netsurf.png
|
2016-09-08 01:12:52 +03:00
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/drawer.info $(AMIGA_INSTALL_TARGET_DIR)/NetSurf.info
|
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/AutoInstall $(AMIGA_INSTALL_TARGET_DIR)
|
2016-01-23 15:48:24 +03:00
|
|
|
ifeq ($(SUBTARGET),os3)
|
2016-09-08 01:12:52 +03:00
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/netsurf_os3.readme $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/netsurf_os3.readme.info $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
2016-01-23 15:48:24 +03:00
|
|
|
else
|
2016-09-08 01:12:52 +03:00
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/netsurf.readme $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
|
|
|
$(Q)cp -p $(AMIGA_PKG_DIR)/netsurf.readme.info $(AMIGA_INSTALL_TARGET_DIR)/NetSurf
|
2016-01-23 15:48:24 +03:00
|
|
|
endif
|
2012-08-15 22:58:36 +04:00
|
|
|
$(Q)cd $(AMIGA_INSTALL_TARGET_DIR); \
|
2019-03-16 02:18:43 +03:00
|
|
|
lha ao6 netsurf.lha NetSurf NetSurf.info AutoInstall
|
2012-08-15 22:58:36 +04:00
|
|
|
|