2013-09-22 09:15:25 +00:00
|
|
|
CC = cl
|
2013-09-27 22:53:14 +00:00
|
|
|
CFLAGS = /O2 /sdl /Isrc /D_CRT_SECURE_NO_WARNINGS
|
2013-09-22 09:15:25 +00:00
|
|
|
|
|
|
|
HOEDOWN_SRC = \
|
|
|
|
src\autolink.obj \
|
|
|
|
src\buffer.obj \
|
2014-02-06 18:40:41 +00:00
|
|
|
src\document.obj \
|
2013-09-22 09:15:25 +00:00
|
|
|
src\escape.obj \
|
|
|
|
src\html.obj \
|
|
|
|
src\html_blocks.obj \
|
|
|
|
src\html_smartypants.obj \
|
|
|
|
src\stack.obj
|
|
|
|
|
|
|
|
all: hoedown.dll hoedown.exe smartypants.exe
|
|
|
|
|
|
|
|
hoedown.dll: $(HOEDOWN_SRC) hoedown.def
|
|
|
|
$(CC) $(HOEDOWN_SRC) hoedown.def /link /DLL $(LDFLAGS) /out:$@
|
|
|
|
|
|
|
|
hoedown.exe: examples\hoedown.obj $(HOEDOWN_SRC)
|
|
|
|
$(CC) examples\hoedown.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
|
|
|
|
|
|
|
|
smartypants.exe: examples\smartypants.obj $(HOEDOWN_SRC)
|
|
|
|
$(CC) examples\smartypants.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
|
|
|
|
|
|
|
|
# Housekeeping
|
|
|
|
|
|
|
|
clean:
|
2013-09-26 00:48:59 +00:00
|
|
|
del $(HOEDOWN_SRC)
|
|
|
|
del hoedown.dll hoedown.exp hoedown.lib
|
|
|
|
del hoedown.exe smartypants.exe
|
2013-09-22 09:15:25 +00:00
|
|
|
|
|
|
|
# Generic object compilations
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
$(CC) $(CFLAGS) /c $< /Fo$@
|