2010-10-27 22:39:24 +04:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Amiga target setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
2010-12-30 00:26:45 +03:00
|
|
|
CFLAGS += -std=c99 -I . -Dnsamiga
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2010-10-29 04:54:27 +04:00
|
|
|
NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE
|
|
|
|
NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
|
|
|
|
NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
|
|
|
|
NETSURF_FEATURE_PNG_CFLAGS := -DWITH_PNG
|
|
|
|
NETSURF_FEATURE_WEBP_CFLAGS := -DWITH_WEBP
|
|
|
|
NETSURF_FEATURE_NSSVG_CFLAGS := -DWITH_NS_SVG
|
2010-10-27 22:39:24 +04:00
|
|
|
|
2010-12-30 00:26:45 +03:00
|
|
|
ifeq ($(HOST),amiga)
|
|
|
|
$(eval $(call feature_enabled,ROSPRITE,-DWITH_NSSPRITE,-lrosprite,Sprite (librosprite)))
|
|
|
|
$(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp,BMP (libnsbmp)))
|
|
|
|
$(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,GIF (libnsgif)))
|
|
|
|
$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) ))
|
|
|
|
$(eval $(call feature_enabled,NSSVG,-DWITH_NS_SVG,-lsvgtiny,SVG (libsvgtiny)))
|
|
|
|
$(eval $(call feature_enabled,MNG,,-llcms -ljpeg,PNG/JNG/MNG (libmng)))
|
|
|
|
$(eval $(call feature_enabled,WEBP,-DWITH_WEBP,-lwebp -lvpx,WebP (libwebp)))
|
|
|
|
$(eval $(call feature_enabled,AMIGA_ICON,-DWITH_AMIGA_ICON,,Amiga icon ))
|
2011-03-06 16:58:02 +03:00
|
|
|
$(eval $(call feature_enabled,PLUGINS,-DWITH_PLUGIN,,DataTypes images))
|
2010-12-30 00:26:45 +03:00
|
|
|
|
2011-01-07 02:46:50 +03:00
|
|
|
CFLAGS += -D__USE_INLINE__ -D__USE_BASETYPE__ -I /SDK/local/common/include/libpng12
|
2011-02-17 00:29:39 +03:00
|
|
|
LDFLAGS += -lxml2 -lcurl -lrtmp -lpthread -lregex -lauto -lpbl
|
2011-03-07 01:21:38 +03:00
|
|
|
LDFLAGS += -lssl -lcrypto -lhubbub -lcss -lparserutils -lwapcaplet
|
2010-12-30 00:26:45 +03:00
|
|
|
|
|
|
|
ifeq ($(NETSURF_AMIGA_USE_CAIRO),YES)
|
|
|
|
CFLAGS += -DNS_AMIGA_CAIRO -I /SDK/local/common/include/cairo
|
|
|
|
LDFLAGS += -use-dynld -ldl -lcairo -lpixman-1 -lfreetype -lfontconfig -lpng -lexpat
|
|
|
|
EXETARGET := NetSurf-Cairo
|
|
|
|
else
|
|
|
|
EXETARGET := NetSurf
|
|
|
|
endif
|
2010-10-31 14:14:26 +03:00
|
|
|
else
|
2010-12-30 00:26:45 +03:00
|
|
|
$(eval $(call pkg_config_find_and_add,BMP,libnsbmp,BMP))
|
|
|
|
$(eval $(call pkg_config_find_and_add,GIF,libnsgif,GIF))
|
|
|
|
$(eval $(call pkg_config_find_and_add,PNG,libpng,PNG))
|
|
|
|
$(eval $(call pkg_config_find_and_add,NSSVG,libsvgtiny,NSSVG))
|
|
|
|
|
|
|
|
CFLAGS += -I$(GCCSDK_INSTALL_ENV)/include
|
|
|
|
CFLAGS += $(shell $(PKG_CONFIG) --cflags libxml-2.0 libcares libcurl openssl)
|
|
|
|
CFLAGS += $(shell $(PKG_CONFIG) --cflags tre libhubbub libcss)
|
|
|
|
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs libxml-2.0 libcares libcurl openssl)
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs tre libhubbub libcss)
|
2010-12-30 04:50:02 +03:00
|
|
|
LDFLAGS += -L$(GCCSDK_INSTALL_ENV)/lib -liconv
|
2010-12-30 00:26:45 +03:00
|
|
|
|
2010-10-31 14:14:26 +03:00
|
|
|
EXETARGET := NetSurf
|
2010-10-29 04:54:27 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Source file setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# S_AMIGA are sources purely for the Amiga build
|
2011-03-06 16:58:02 +03:00
|
|
|
S_AMIGA := gui.c tree.c history.c hotlist.c schedule.c plugin.c \
|
2010-10-29 04:54:27 +04:00
|
|
|
thumbnail.c misc.c bitmap.c font.c filetype.c utf8.c login.c \
|
|
|
|
plotters.c object.c menu.c save_pdf.c arexx.c version.c \
|
|
|
|
cookies.c context_menu.c clipboard.c save_complete.c \
|
2011-02-26 20:38:43 +03:00
|
|
|
launch.c search.c history_local.c download.c iff_dr2d.c \
|
2011-01-30 16:40:47 +03:00
|
|
|
sslcert.c gui_options.c print.c theme.c drag.c icon.c system_colour.c \
|
2010-10-29 04:54:27 +04:00
|
|
|
stringview/stringview.c stringview/urlhistory.c
|
|
|
|
S_AMIGA := $(addprefix amiga/,$(S_AMIGA))
|
|
|
|
|
|
|
|
# complete source file list
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_AMIGA) $(S_PDF)
|