summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 10:05:55 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 10:05:55 +1100
commit4a09b7bc0b8229495cd1807cc1bb9bf5f485c2ed (patch)
treec6002baa7973e724c665e942c92cf1eba0edac55 /Makefile
downloadsdl2-checkerboard-4a09b7bc0b8229495cd1807cc1bb9bf5f485c2ed.tar.gz
sdl2-checkerboard-4a09b7bc0b8229495cd1807cc1bb9bf5f485c2ed.tar.bz2
sdl2-checkerboard-4a09b7bc0b8229495cd1807cc1bb9bf5f485c2ed.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3304619
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+CC?=gcc
+SDL2FLAGS=$(shell pkg-config sdl2 --cflags --libs)
+CFLAGS?=-march=native -O3 -pipe
+
+main: main.c
+ ${CC} ${CFLAGS} -o $@ $< ${SDL2FLAGS}
+
+clean:
+ rm -f main *.o