diff options
author | quou <quou@disroot.org> | 2024-08-25 15:38:49 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-08-25 15:46:21 +1000 |
commit | 86d5a546b4eab47b991a0acc4ab444c725feb081 (patch) | |
tree | 1a8dae50d6df5f0c008dbe5e024b4496d777c661 /Makefile | |
parent | 2992af6bbd4e8961e6cb8c15af01d2894d2b1b81 (diff) |
GLTF meshes
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -30,9 +30,8 @@ sources = \ objects = $(sources:%.c=%.o) mesh_sources = \ - $(int_dir)/cube.obj \ - $(int_dir)/gun.obj \ - $(int_dir)/monkey.obj + $(int_dir)/gun.glb \ + $(int_dir)/guy.glb texture_sources = \ $(int_dir)/brick.bmp \ @@ -41,7 +40,7 @@ texture_sources = \ $(int_dir)/gun.bmp \ $(int_dir)/guy.bmp -meshes = $(mesh_sources:$(int_dir)/%.obj=$(data_dir)/%.msh) +meshes = $(mesh_sources:$(int_dir)/%.glb=$(data_dir)/%.msh) textures = $(texture_sources:$(int_dir)/%.bmp=$(data_dir)/%.bc1) all: $(target) $(pack) @@ -52,14 +51,14 @@ $(objects): %.o : %.c $(target): $(objects) $(linker) $(objects) -o $@ $(lflags) -$(meshes): $(data_dir)/%.msh : $(int_dir)/%.obj | $(convmesh) $(data_dir) +$(meshes): $(data_dir)/%.msh : $(int_dir)/%.glb | $(convmesh) $(data_dir) ./$(convmesh) $< $@ $(textures): $(data_dir)/%.bc1 : $(int_dir)/%.bmp | $(convtexture) $(data_dir) ./$(convtexture) $< $@ $(convmesh): convmesh.c - $(tool_compiler) $(cflags) -o $@ $< + $(tool_compiler) -o $@ $< $(convtexture): convtexture.c $(tool_compiler) $(cflags) -o $@ $< -lm |