all: gettext.dll gettext.dll: gettext.cs mcs -target:library -out:gettext.dll gettext.cs # it doesn't work here by simply referencing gettext.dll -- what am I doing wrong? test.exe: test.cs gettext.dll mcs -target:exe -reference:gettext.dll -out:test.exe test.cs gettext.cs