From 611e4f8cbe5bfce70dc24a7913fcf82212f70b27 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 2 Aug 2008 14:35:40 +0000 Subject: Added changes for TARGET=amiga svn path=/trunk/netsurf/; revision=4865 --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f92262902..36b5efe9a 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,12 @@ else # Haiku implements the BeOS API HOST := beos endif + ifeq ($(HOST),AmigaOS) + HOST := amiga + ifeq ($(TARGET),) + TARGET := amiga + endif + endif ifeq ($(HOST),beos) # Build happening on BeOS platform, default target is BeOS backend ifeq ($(TARGET),) @@ -81,7 +87,9 @@ ifneq ($(TARGET),riscos) ifneq ($(TARGET),gtk) ifneq ($(TARGET),beos) ifneq ($(TARGET),debug) - $(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos" or "debug") + ifneq ($(TARGET),amiga) + $(error Unknown TARGET "$(TARGET)", should either be "riscos", "gtk", "beos", "amiga" or "debug") + endif endif endif endif @@ -362,6 +370,15 @@ ifeq ($(TARGET),beos) LDFLAGS += -lbe -ltranslation $(NETLDFLAGS) endif +# ---------------------------------------------------------------------------- +# Amiga target setup +# ---------------------------------------------------------------------------- + +ifeq ($(TARGET),amiga) + CFLAGS += -mcrt=newlib -D__USE_INLINE__ -std=c99 -I . + LDFLAGS += -lxml2 -lz -ljpeg -lcurl -lm -lmng -lsocket -lpthread -lrosprite -liconv -lregex -lauto -lssl -lcrypto -lamisslauto -mcrt=newlib +endif + # ---------------------------------------------------------------------------- # Debug target setup # ---------------------------------------------------------------------------- -- cgit v1.2.3