Remove make -C directives from makefile; simplify quickjs.a
This commit is contained in:
parent
d6aee3887b
commit
fca85c7c3a
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -4,6 +4,7 @@ bin/
|
|||
build/
|
||||
*.o
|
||||
*.a
|
||||
*.d
|
||||
tags
|
||||
Jenkinsfile
|
||||
*~
|
||||
|
@ -17,4 +18,5 @@ sokol-shdc
|
|||
source/shaders/*.h
|
||||
core.cdb
|
||||
primum.exe
|
||||
core.cdb.h
|
||||
core.cdb.h
|
||||
jsc
|
14
Makefile
14
Makefile
|
@ -258,9 +258,9 @@ input.md: $(INPUTMD)
|
|||
@echo Printing api for $*
|
||||
@./primum -d $* > $@
|
||||
|
||||
$(BIN)/libquickjs.a: $(QUICKJS_O)
|
||||
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)
|
||||
$(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)
|
||||
@mkdir -p $(BIN)
|
||||
cp -rf quickjs/libquickjs.* $(BIN)
|
||||
|
||||
|
@ -309,10 +309,8 @@ packer: tools/packer.c tools/libcdb.a
|
|||
jsc: tools/jso.c tools/libquickjs.a
|
||||
$(CC) $^ -lm -Iquickjs -o $@
|
||||
|
||||
tools/libquickjs.a:
|
||||
make -C quickjs clean
|
||||
make -C quickjs OPT=$(OPT) AR=$(AR) libquickjs.a
|
||||
cp -f quickjs/libquickjs.a tools
|
||||
tools/libquickjs.a: $(BIN)/libquickjs.a
|
||||
cp -f $(BIN)/libquickjs.a tools
|
||||
|
||||
WINCC = x86_64-w64-mingw32-gcc
|
||||
#WINCC = i686-w64-mingw32-g++
|
||||
|
@ -331,7 +329,7 @@ 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 $(CDB)/*.o
|
||||
rm -f $(CDB)/*.o
|
||||
@make -C quickjs clean
|
||||
|
||||
docs: doc/prosperon.org
|
||||
|
|
Loading…
Reference in a new issue