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 \
|
2014-02-06 19:38:21 +00:00
|
|
|
src\stack.obj \
|
|
|
|
src\version.obj
|
2013-09-22 09:15:25 +00:00
|
|
|
|
|
|
|
all: hoedown.dll hoedown.exe smartypants.exe
|
|
|
|
|
|
|
|
hoedown.dll: $(HOEDOWN_SRC) hoedown.def
|
|
|
|
$(CC) $(HOEDOWN_SRC) hoedown.def /link /DLL $(LDFLAGS) /out:$@
|
|
|
|
|
2014-03-23 19:17:02 +00:00
|
|
|
hoedown.exe: bin\hoedown.obj $(HOEDOWN_SRC)
|
|
|
|
$(CC) bin\hoedown.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
|
2013-09-22 09:15:25 +00:00
|
|
|
|
2014-03-23 19:17:02 +00:00
|
|
|
smartypants.exe: bin\smartypants.obj $(HOEDOWN_SRC)
|
|
|
|
$(CC) bin\smartypants.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
|
2013-09-22 09:15:25 +00:00
|
|
|
|
|
|
|
# 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$@
|
2014-10-22 05:06:26 +00:00
|
|
|
|
|
|
|
# Testing
|
|
|
|
|
|
|
|
test: hoedown.exe
|
|
|
|
python test\runner.py
|