diff options
Diffstat (limited to 'tests/glfw/Makefile')
-rw-r--r-- | tests/glfw/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/glfw/Makefile b/tests/glfw/Makefile new file mode 100644 index 00000000..89138d74 --- /dev/null +++ b/tests/glfw/Makefile @@ -0,0 +1,56 @@ +########################################################################## +# Makefile for GLFW example programs on X11 (generated by compile.sh) +########################################################################## +CC = emcc +CFLAGS = -I../include + +LIB = -lglfw +SOLIB = +LFLAGS = $(LIB) +SO_LFLAGS = $(SOLIB) + +BINARIES = triangle.js listmodes.js mthello.js pong3d.js mtbench.js particles.js splitview.js \ + mipmaps.js gears.js boing.js heightmap.js +## wave + +all: $(BINARIES) + +triangle.js: triangle.c + $(CC) $(CFLAGS) triangle.c $(LFLAGS) -o $@ + +listmodes.js: listmodes.c + $(CC) $(CFLAGS) listmodes.c $(LFLAGS) -o $@ + +mthello.js: mthello.c + $(CC) $(CFLAGS) mthello.c $(LFLAGS) -o $@ + +pong3d.js: pong3d.c + $(CC) $(CFLAGS) pong3d.c $(LFLAGS) -o $@ + +mtbench.js: mtbench.c + $(CC) $(CFLAGS) mtbench.c $(LFLAGS) -o $@ + +particles.js: particles.c + $(CC) $(CFLAGS) particles.c $(LFLAGS) -o $@ + +splitview.js: splitview.c + $(CC) $(CFLAGS) splitview.c $(LFLAGS) -o $@ + +mipmaps.js: mipmaps.c + $(CC) $(CFLAGS) mipmaps.c $(LFLAGS) -o $@ + +gears.js: gears.c + $(CC) $(CFLAGS) gears.c $(LFLAGS) -o $@ + +boing.js: boing.c + $(CC) $(CFLAGS) boing.c $(LFLAGS) -o $@ + +wave.js: wave.c + $(CC) $(CFLAGS) wave.c $(LFLAGS) -o $@ + +heightmap.js: heightmap.c + $(CC) $(CFLAGS) heightmap.c $(LFLAGS) -o $@ + +clean: + rm -f $(BINARIES) + |