Permalink
Browse files

Merge pull request #108 from txdv/windows

Add nmake build target for windows.
  • Loading branch information...
2 parents 6a9a1be + cbf052e commit bd060113581e39c90870c7a93b009fd0f22a7b9b @vmg vmg committed Apr 11, 2012
Showing with 53 additions and 0 deletions.
  1. +33 −0 Makefile.win
  2. +20 −0 sundown.def
View
@@ -0,0 +1,33 @@
+
+CFLAGS=/O2 /EHsc /I"src/" /I"examples"/ /I"html"/
+CC=cl
+
+SUNDOWN_SRC=\
+ src\markdown.obj \
+ src\stack.obj \
+ src\buffer.obj \
+ src\autolink.obj \
+ html\html.obj \
+ html\html_smartypants.obj \
+ html\houdini_html_e.obj \
+ html\houdini_href_e.obj
+
+all: sundown.dll sundown.exe
+
+sundown.dll: $(SUNDOWN_SRC) sundown.def
+ $(CC) $(SUNDOWN_SRC) sundown.def /link /DLL $(LDFLAGS) /out:$@
+
+sundown.exe: examples\sundown.obj $(SUNDOWN_SRC)
+ $(CC) examples\sundown.obj $(SUNDOWN_SRC) /link $(LDFLAGS) /out:$@
+
+# housekeeping
+clean:
+ del $(SUNDOWN_SRC)
+ del sundown.dll sundown.exe
+ del sundown.exp sundown.lib
+
+# generic object compilations
+
+.c.obj:
+ $(CC) $(CFLAGS) /c $< /Fo$@
+
View
@@ -0,0 +1,20 @@
+LIBRARY SUNDOWN
+EXPORTS
+ sdhtml_renderer
+ sdhtml_toc_renderer
+ sdhtml_smartypants
+ bufgrow
+ bufnew
+ bufcstr
+ bufprefix
+ bufput
+ bufputs
+ bufputc
+ bufrelease
+ bufreset
+ bufslurp
+ bufprintf
+ sd_markdown_new
+ sd_markdown_render
+ sd_markdown_free
+ sd_version

0 comments on commit bd06011

Please sign in to comment.