Skip to content

Instantly share code, notes, and snippets.

@LaughingSun LaughingSun/Cuica-1.wav forked from armornick/playwav.c
Last active Feb 27, 2018

What would you like to do?
Play a sound with SDL2 added lots of print information and the ability to specify the wav file as first argument. Woohoo.
SRCS = $(wildcard *.c)
.PHONY: all
all: $(patsubst %.c,%,$(SRCS))
@echo found rules for: $^
%: %.c
gcc -I/usr/local/include -L/usr/local/lib $< -Wl,-rpath,/usr/local/lib -lSDL2 -lm -o $@
@echo built: $@
clean: $(patsubst %.c,%,$(SRCS))
rm $(patsubst %.c,%,$(SRCS))
@echo cleaned: $^
# gcc -I/usr/local/include -L/usr/local/lib $< -Wl,-rpath,/usr/local/lib -lSDL2 -lm -o $@
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.