Add crossweb

This commit is contained in:
John Alanbrook 2024-03-09 17:11:33 -06:00
parent f6efad8263
commit 32e71cd94e
2 changed files with 8 additions and 3 deletions

4
.gitignore vendored
View file

@ -19,4 +19,6 @@ source/shaders/*.h
core.cdb core.cdb
primum.exe primum.exe
core.cdb.h core.cdb.h
jsc jsc
.DS_Store
primum.html

View file

@ -300,7 +300,6 @@ core.cdb: packer $(CORE)
chmod 644 out.cdb chmod 644 out.cdb
mv out.cdb core.cdb mv out.cdb core.cdb
packer: tools/packer.c tools/libcdb.a packer: tools/packer.c tools/libcdb.a
cc $^ -I$(CDB) -o packer cc $^ -I$(CDB) -o packer
@ -323,10 +322,14 @@ crossmac:
mv primum primum_x86_64 mv primum primum_x86_64
lipo primum_arm64 primum_x86_64 -create -output primum lipo primum_arm64 primum_x86_64 -create -output primum
crossweb:
make packer
make CC=emcc
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 $(CDB)/libcdb.a rm -f source/shaders/*.h 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