CSC = mcs all:out.txt cat $< out.txt:main.exe mono $< > $@ matrix.dll: ../matrix/matrix.cs ../matrix/vector.cs ../matrix/xtensions.cs $(CSC) $^ -out:$@ -target:library .PHONEY:clean clean: $(RM) *.dll *.exe cholesky.dll: cholesky.cs matrix.dll mcs $< -t:library -r:matrix.dll main.exe: main.cs matrix.dll cholesky.dll mcs $< -t:exe -r:matrix.dll,cholesky.dll