commit fdc66dca7e193ae3f2afa9861c08d62c5e949bfd parent 1b2c74b2c7500b47d02278e7ede80d5fcadf2543 Author: Nihal Jere <nihal@nihaljere.xyz> Date: Wed, 19 Jan 2022 23:43:40 -0600 update Makefile Diffstat:
M | Makefile | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,13 +1,16 @@ SRC = main.c SDL2_gfxPrimitives.c SDL2_rotozoom.c OBJ = $(SRC:%.c=%.o) EXE = pong -LIBS = -lSDL2 -lm -lfluidsynth +LIBS = -lm -lfluidsynth -lSDL2 all: $(OBJ) $(CC) -g -o $(EXE) $(OBJ) $(LIBS) +web: + emcc -O2 -I/home/nihal/fluidsynth/include -I/home/nihal/fluidsynth/build/include -DSOUND main.c SDL2_gfxPrimitives.c libfluidsynth.a -s USE_SDL=2 --preload-file assets -o soundpong.html --shell-file minimal_shell.html + .c.o: - $(CC) -g $< -c + $(CC) -DSOUND -g $< -c clean: - rm -rf $(OBJS) $(EXE) + rm -rf $(OBJ) $(EXE)