makefile fixes

This commit is contained in:
John Alanbrook 2024-03-09 16:00:47 -06:00
parent 1c936cde56
commit f6efad8263
2 changed files with 3 additions and 4 deletions

View file

@ -226,8 +226,7 @@ $(BIN)/libengine.a: $(OBJS)
CDB_C != find $(CDB) -name *.c CDB_C != find $(CDB) -name *.c
CDB_O := $(patsubst %.c, %.o, $(CDB_C)) CDB_O := $(patsubst %.c, %.o, $(CDB_C))
$(CDB)/libcdb.a: $(CDB_O) $(CDB)/libcdb.a:
mkdir -p $(BIN)
rm -f $(CDB)/libcdb.a rm -f $(CDB)/libcdb.a
make -C $(CDB) libcdb.a make -C $(CDB) libcdb.a
@ -327,7 +326,7 @@ crossmac:
clean: clean:
@echo Cleaning project @echo Cleaning project
rm -rf bin dist 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 rm -f $(CDB)/*.o
@make -C quickjs clean @make -C quickjs clean

View file

@ -18,7 +18,7 @@ NSSCDB_DIR = $(sysconfdir)
DESTDIR= DESTDIR=
CC = cc CC = cc
CFLAGS = -O CFLAGS = -O2
CDEFS = -D_FILE_OFFSET_BITS=64 CDEFS = -D_FILE_OFFSET_BITS=64
LD = $(CC) LD = $(CC)
LDFLAGS = LDFLAGS =