diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..629900b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+nfix: nfix.c
+	${CC} -o $@ $+ $$(pkg-config --cflags --libs ncurses)
+
+clean:
+	-${RM} nfix
+
+.PHONY: clean
diff --git a/nfix.c b/nfix.c
index 9244f78..1ca6489 100644
--- a/nfix.c
+++ b/nfix.c
@@ -1,3 +1,4 @@
+// @BAKE gcc -o $* $@ $(pkg-config --cflags --libs ncurses)
 #include <ncurses.h>
 
 signed main(){