added SDL tests
[glpixels] / Makefile.sdl2
diff --git a/Makefile.sdl2 b/Makefile.sdl2
new file mode 100644 (file)
index 0000000..60e487b
--- /dev/null
@@ -0,0 +1,12 @@
+obj = sdl2pixels.o
+bin = sdl2pixels
+
+CFLAGS = -pedantic -Wall -g -O3 `sdl2-config --cflags`
+LDFLAGS = `sdl2-config --libs` -lm
+
+$(bin): $(obj)
+       $(CC) -o $@ $(obj) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+       rm -f $(obj) $(bin)