diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -9,7 +9,9 @@ COMPONENT_TYPE := binary COMPONENT_VERSION := 1.0.0 # Setup the tooling -include build/makefiles/Makefile.tools +PREFIX ?= /opt/netsurf +NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem +include $(NSSHARED)/makefiles/Makefile.tools # Toolchain flags WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ @@ -23,6 +25,6 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),clean) endif # Grab the core makefile -include build/makefiles/Makefile.top +include $(NSBUILD)/Makefile.top # Extra installation rules diff --git a/src/Makefile b/src/Makefile index d629b72..be43b7f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ # Sources DIR_SOURCES := alphagen.c -include build/makefiles/Makefile.subdir +include $(NSBUILD)/Makefile.subdir |