2011-01-06 00:02:22 +03:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Atari target setup
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
$(eval $(call feature_enabled,MNG,-DWITH_MNG,-lmng,PNG/MNG/JNG (libmng)))
|
|
|
|
$(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG (libpng) ))
|
|
|
|
|
2011-02-23 00:10:23 +03:00
|
|
|
LDFLAGS += -lcflib
|
2011-01-06 00:02:22 +03:00
|
|
|
|
|
|
|
CFLAGS += -DATARI_USE_FREETYPE $(shell freetype-config --cflags)
|
|
|
|
LDFLAGS += $(shell freetype-config --libs)
|
|
|
|
|
|
|
|
# define additional CFLAGS and LDFLAGS requirements for pkg-configed libs here
|
|
|
|
NETSURF_FEATURE_RSVG_CFLAGS := -DWITH_RSVG
|
|
|
|
NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB
|
|
|
|
NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
|
|
|
|
NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
|
|
|
|
|
|
|
|
$(eval $(call pkg_config_find_and_add,BMP,libnsbmp,BMP))
|
|
|
|
$(eval $(call pkg_config_find_and_add,GIF,libnsgif,GIF))
|
|
|
|
|
|
|
|
CFLAGS += -std=c99 -I. -Dsmall $(WARNFLAGS) -Dnsatari \
|
|
|
|
-D_BSD_SOURCE \
|
|
|
|
-D_XOPEN_SOURCE=600 \
|
|
|
|
-D_POSIX_C_SOURCE=200112L \
|
|
|
|
$(shell $(PKG_CONFIG) --cflags libhubbub libcss openssl) \
|
|
|
|
$(shell xml2-config --cflags) \
|
|
|
|
$(shell curl-config --cflags)
|
|
|
|
|
|
|
|
LDFLAGS += $(shell curl-config --libs)
|
|
|
|
LDFLAGS += $(shell $(PKG_CONFIG) --libs libhubbub openssl libcss)
|
2011-03-14 00:45:20 +03:00
|
|
|
LDFLAGS += -L/usr/lib/ -lxml2 -lz -lHermes -liconv -L/usr/lib -lwindom -lgem -lm
|
2011-01-06 00:02:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
# S_ATARI are sources purely for the Atari FreeMiNT build
|
|
|
|
S_ATARI := gui.c findfile.c filetype.c misc.c bitmap.c schedule.c \
|
|
|
|
download.c thumbnail.c login.c verify_ssl.c treeview.c hotlist.c history.c\
|
2011-01-31 01:09:54 +03:00
|
|
|
search.c font.c \
|
2011-01-06 00:02:22 +03:00
|
|
|
plot.c plot/plotter.c plot/plotter_vdi.c plot/eddi.s \
|
2011-02-12 23:47:25 +03:00
|
|
|
plot/font_vdi.c plot/font_freetype.c plot/font_internal.c \
|
2011-01-06 00:02:22 +03:00
|
|
|
browser_win.c toolbar.c statusbar.c browser.c \
|
2011-02-05 17:32:15 +03:00
|
|
|
global_evnt.c osspec.c dragdrop.c system_colour.c
|
2011-01-06 00:02:22 +03:00
|
|
|
S_ATARI := $(addprefix atari/,$(S_ATARI))
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_ATARI)
|
|
|
|
EXETARGET := ns$(SUBTARGET).prg
|
|
|
|
|
|
|
|
|