diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-26 11:42:46 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-26 11:42:46 -0500 |
commit | 08cda726bec4e3f14cc9ef13b25a1ea531be697c (patch) | |
tree | df5b566329fa8383946f8e10bcdec0bd30a30d9e /Makefile |
shaders
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3bcb667 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu11 \ + -Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough -Wno-format-truncation -Wno-unknown-warning-option +LIBS=-lSDL2 -lGL -ldl -lm +DEBUG_CFLAGS=$(ALL_CFLAGS) -DDEBUG -O0 -g +RELEASE_CFLAGS=$(ALL_CFLAGS) -O3 -g +PROFILE_CFLAGS=$(ALL_CFLAGS) -O3 -g -DPROFILE=1 +shaders: *.[ch] + $(CC) main.c -o $@ $(DEBUG_CFLAGS) $(LIBS) +release: *.[ch] + $(CC) main.c -o shaders $(RELEASE_CFLAGS) $(LIBS) +profile: *.[ch] + $(CC) main.c -o shaders $(PROFILE_CFLAGS) $(LIBS) +clean: + rm -f shaders |