diff --git a/src/make.inc b/src/make.inc
new file mode 100644
index 0000000000000000000000000000000000000000..77cf05c05b72911e4f6319423e128aa84de7f70d
--- /dev/null
+++ b/src/make.inc
@@ -0,0 +1,37 @@
+ifndef FC
+override FC=gfortran
+endif
+
+ifndef FCFLAGS
+override FCFLAGS=-std=legacy -O3
+endif
+
+ifndef LDFLAGS
+override LDFLAGS=
+endif
+
+ifndef CXX
+override CXX=g++
+endif
+
+ifndef HDF5_INCLUDE
+override HDF5_INCLUDE=/usr/include/hdf5/serial
+endif
+
+ifndef CXXFLAGS
+override CXXFLAGS=-O3 -ggdb -pg -coverage -I$(HDF5_INCLUDE)
+endif
+
+ifndef CXXLDFLAGS
+ifndef HDF5_LIB
+override HDF5_LIB=/usr/lib/x86_64-linux-gnu/hdf5/serial
+endif
+override CXXLDFLAGS=-L/usr/lib64 -L$(HDF5_LIB) -lhdf5_hl -lhdf5 $(LDFLAGS)
+endif
+
+%.o : %.f
+	$(FC) $(FCFLAGS) -c -o $(BUILDDIR)/$@ $<
+
+%.o : %.cpp
+	$(CXX) $(CXXFLAGS) -c -o $(BUILDDIR)/$@ $<
+