One can now use nmake like that: nmake /F Makefile.win
to build sundown.exe and sundown.dll easily on windows.
I had to add the MD_EXTERN define to expose the functions in the dll.
Tanoku I would like to hear some comments.
You forgot to add the Makefile. :)
Also: buffer.h is not the right place to add those defines, and markdown.h neither, because there's an ugly dependency here... We need to come up with a better way.
There it is. Not as beautiful as the unix makefile, yet more beautiful compared to the awful thousand vsproj files.
can't add smartypants because of getopt.h not being present on windows.
Looks good. But we still need to find a proper place for the MD_EXTERN macro. buffer.c is certainly not the place.
If I'm not mistaken, you can specify the exported symbols for a Windows DLL on an exports file; that'd drop the requirement for the macro.
One shouldn't use -a too often.
I will look into this, I have never done extensive development on windows. Thanks for the suggestion.
Add nmake build target for windows.
Expose functions that are needed in the windows dynamic library with
a definition file (sundown.def)
Here we got, I squashed them together so it is one nice tidy commit.
Amazing, no need for source code change at all!
YEY! Brilliant job!