diff --git a/.gitignore b/.gitignore index fea65f3..ffa2ea9 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,6 @@ source/shaders/*.h core.cdb primum.exe core.cdb.h -jsc \ No newline at end of file +jsc +.DS_Store +primum.html \ No newline at end of file diff --git a/Makefile b/Makefile index 6d60b7e..475b9cb 100755 --- a/Makefile +++ b/Makefile @@ -300,7 +300,6 @@ core.cdb: packer $(CORE) chmod 644 out.cdb mv out.cdb core.cdb - packer: tools/packer.c tools/libcdb.a cc $^ -I$(CDB) -o packer @@ -323,10 +322,14 @@ crossmac: mv primum primum_x86_64 lipo primum_arm64 primum_x86_64 -create -output primum +crossweb: + make packer + make CC=emcc + 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 $(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 @make -C quickjs clean