From 1c936cde569c9f5b02f6d7353f3263275bb35ddc Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Sat, 9 Mar 2024 15:55:20 -0600 Subject: [PATCH] restore make -C --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4b45ddb..3b890dd 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ MAKEFLAGS = --jobs=4 UNAME != uname MAKEDIR != pwd - # Options # DBG --- build with debugging symbols and logging @@ -230,7 +229,7 @@ CDB_O := $(patsubst %.c, %.o, $(CDB_C)) $(CDB)/libcdb.a: $(CDB_O) mkdir -p $(BIN) rm -f $(CDB)/libcdb.a - ar rv $@ $^ + make -C $(CDB) libcdb.a tools/libcdb.a: $(CDB)/libcdb.a cp $(CDB)/libcdb.a tools @@ -259,8 +258,8 @@ input.md: $(INPUTMD) @./primum -d $* > $@ $(BIN)/libquickjs.a: - cd quickjs && make clean - cd quickjs && make SYSRT=$(SYSRT) TTARGET=$(TTARGET) ARCH=$(ARCH) DBG=$(DBG) OPT=$(OPT) AR=$(AR) OS=$(OS) libquickjs.a HOST_CC=$(CC) LEAK=$(LEAK) + make -C quickjs clean + make -C quickjs SYSRT=$(SYSRT) TTARGET=$(TTARGET) ARCH=$(ARCH) DBG=$(DBG) OPT=$(OPT) AR=$(AR) OS=$(OS) libquickjs.a HOST_CC=$(CC) LEAK=$(LEAK) @mkdir -p $(BIN) cp -rf quickjs/libquickjs.* $(BIN)