From 9d508d57eda62a965b8849f92817db3a3e6cd25b Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 22 Aug 2015 09:24:32 +0100 Subject: [PATCH] Library/libs: use $(MAKE) for the Z80 build at least --- Library/libs/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/libs/Makefile b/Library/libs/Makefile index 4e5c44a7..860207f4 100644 --- a/Library/libs/Makefile +++ b/Library/libs/Makefile @@ -2,6 +2,7 @@ CC = sdcc ASM = sdasz80 AR = sdar LINKER = sdldz80 +export MAKE = make # This gets set for 'awkward' devices like ZX128 #PLATFORM = -zx128 PLATFORM = @@ -78,7 +79,7 @@ libc.l:%.l:$(OBJ_ALL) syscall.l: fuzix/syslib.l ../tools/syscall - (cd fuzix; make) + (cd fuzix; $(MAKE)) cat fuzix/syslib.l | tr " " "\\n" | sed -e "s/^/fuzix\//" >syscall.l sdccz80.lib: @@ -93,7 +94,7 @@ syslib$(PLATFORM).lib: syscall.l libc.l sdccz80.lib fuzix/syslib.l: ../tools/syscall - make -C fuzix + $(MAKE) -C fuzix liberror.txt: ../tools/liberror > liberror.txt @@ -119,4 +120,4 @@ $(OBJ_HARD):%.rel: %.c clean: rm -rf *.rel *.asm *.sym *.lst *.lib *~ syscall.l libc.l syslib.l liberror.txt (cd curses; rm -rf *.rel *.asm *.sym *.lst *~) - (cd fuzix; make clean) + (cd fuzix; $(MAKE) clean) -- 2.34.1