--- a
+++ b/src/Makefile
@@ -0,0 +1,10 @@
+MKOCT_FLAGS = $(shell pkg-config --libs cfitsio)
+
+all: read_fits_image.oct save_fits_image.oct save_fits_image_multi_ext.oct
+
+clean:
+	rm -f *.oct *.o
+
+%.oct: %.cc
+	mkoctfile --verbose -Wall $(MKOCT_FLAGS) $<
+