From f6efad8263014d4c40fcc242353149ee27347a00 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Sat, 9 Mar 2024 16:00:47 -0600 Subject: [PATCH] makefile fixes --- Makefile | 5 ++--- source/engine/thirdparty/tinycdb/Makefile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3b890dd..6d60b7e 100755 --- a/Makefile +++ b/Makefile @@ -226,8 +226,7 @@ $(BIN)/libengine.a: $(OBJS) CDB_C != find $(CDB) -name *.c CDB_O := $(patsubst %.c, %.o, $(CDB_C)) -$(CDB)/libcdb.a: $(CDB_O) - mkdir -p $(BIN) +$(CDB)/libcdb.a: rm -f $(CDB)/libcdb.a make -C $(CDB) libcdb.a @@ -327,7 +326,7 @@ crossmac: clean: @echo Cleaning project rm -rf bin dist - rm -f shaders/*.sglsl.h shaders/*.metal core.cdb jso cdb packer TAGS source/engine/core.cdb.h tools/libcdb.a + rm -f shaders/*.sglsl.h shaders/*.metal core.cdb jso cdb packer TAGS source/engine/core.cdb.h tools/libcdb.a $(CDB)/libcdb.a rm -f $(CDB)/*.o @make -C quickjs clean diff --git a/source/engine/thirdparty/tinycdb/Makefile b/source/engine/thirdparty/tinycdb/Makefile index 1fbae75..9d7d6d9 100644 --- a/source/engine/thirdparty/tinycdb/Makefile +++ b/source/engine/thirdparty/tinycdb/Makefile @@ -18,7 +18,7 @@ NSSCDB_DIR = $(sysconfdir) DESTDIR= CC = cc -CFLAGS = -O +CFLAGS = -O2 CDEFS = -D_FILE_OFFSET_BITS=64 LD = $(CC) LDFLAGS =