-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose functions that are needed in the windows dynamic library with a definition file (sundown.def)
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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$@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |