r5264 bursa - /trunk/Makefile

netsurf at semichrome.net netsurf at semichrome.net
Sat Sep 6 23:24:18 BST 2008


Author: bursa
Date: Sat Sep  6 17:24:17 2008
New Revision: 5264

URL: http://source.netsurf-browser.org?rev=5264&view=rev
Log:
1st draft of a simple top-level makefile.

Added:
    trunk/Makefile

Added: trunk/Makefile
URL: http://source.netsurf-browser.org/trunk/Makefile?rev=5264&view=auto
==============================================================================
--- trunk/Makefile (added)
+++ trunk/Makefile Sat Sep  6 17:24:17 2008
@@ -1,0 +1,61 @@
+#
+# Makefile for NetSurf and required libraries
+#
+
+usage:
+	@echo Please use one of the following targets:
+	@echo
+	@echo "  make gtk       NetSurf with GTK interface"
+	@echo "  make riscos    NetSurf for RISC OS"
+	@echo
+	@echo Optionally append PREFIX=...
+
+export ROOT = $(shell realpath .)
+export PKG_CONFIG_PATH = $(PREFIX)/lib/pkgconfig
+export PREFIX ?= $(ROOT)/prefix-$(TARGET)
+
+gtk: export TARGET=gtk
+gtk:
+	@echo -----------------------------------------------------------------
+	@echo
+	@echo Building NetSurf with GTK interface with the following options:
+	@echo
+	@echo TARGET = $(TARGET)
+	@echo PREFIX = $(PREFIX)
+	@echo PKG_CONFIG_PATH = $(PKG_CONFIG_PATH)
+	@echo
+	@echo -----------------------------------------------------------------
+	@echo
+	mkdir -p $(PREFIX)/include
+	mkdir -p $(PREFIX)/lib
+	make install --directory=libparserutils TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=hubbub TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libnsbmp TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libnsgif TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libsvgtiny TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make --directory=netsurf TARGET=$(TARGET) PREFIX=$(PREFIX)
+
+riscos: export TARGET=riscos
+riscos:
+	@echo -----------------------------------------------------------------
+	@echo
+	@echo Building NetSurf for RISC OS with the following options:
+	@echo
+	@echo TARGET = $(TARGET)
+	@echo PREFIX = $(PREFIX)
+	@echo PKG_CONFIG_PATH = $(PKG_CONFIG_PATH)
+	@echo
+	@echo -----------------------------------------------------------------
+	@echo
+	mkdir -p $(PREFIX)/include
+	mkdir -p $(PREFIX)/lib
+	make install --directory=libparserutils --makefile=Makefile-riscos TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=hubbub --makefile=Makefile-riscos TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libnsbmp TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libnsgif TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=libsvgtiny TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=pencil TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make install --directory=rufl TARGET=$(TARGET) PREFIX=$(PREFIX)
+	make --directory=netsurf TARGET=$(TARGET) PREFIX=$(PREFIX)
+
+




More information about the netsurf-commits mailing list