added tunnel effect and SDL backend
[dosdemo] / GNUmakefile
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644 (file)
index 0000000..312fd6a
--- /dev/null
@@ -0,0 +1,15 @@
+src = $(wildcard src/*.c) $(wildcard src/sdl/*.c)
+obj = $(src:.c=.o)
+bin = demo
+
+inc = -Isrc -Isrc/sdl
+
+CFLAGS = -pedantic -Wall -g $(inc) `sdl-config --cflags`
+LDFLAGS = `sdl-config --libs` -lm
+
+$(bin): $(obj)
+       $(CC) -o $@ $(obj) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+       rm -f $(obj) $(bin)