restore make -C

This commit is contained in:
John Alanbrook 2024-03-09 15:55:20 -06:00
parent fca85c7c3a
commit 1c936cde56

View file

@ -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)