... and store a C file in the lib then you can do: echo -c -D__HARBOUR__ -D__FLAT__ $(LEGACY) -I$(HDIR)\include -I.\source\internal\include > tmp echo -I"$(VCDIR)"\include -I.\include -I"$(SDKDIR)"\include /Gs20000 >> tmp if exist "$(VCDIR)"\bin\cl.exe "$(VCDIR)"\bin\cl ...