forked from hoedown/hoedown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
41 lines (30 loc) · 871 Bytes
/
Makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CC = cl
CFLAGS = /O2 /sdl /Isrc /D_CRT_SECURE_NO_WARNINGS
HOEDOWN_SRC = \
src\autolink.obj \
src\buffer.obj \
src\document.obj \
src\escape.obj \
src\html.obj \
src\html_blocks.obj \
src\html_smartypants.obj \
src\stack.obj \
src\version.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: bin\hoedown.obj $(HOEDOWN_SRC)
$(CC) bin\hoedown.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
smartypants.exe: bin\smartypants.obj $(HOEDOWN_SRC)
$(CC) bin\smartypants.obj $(HOEDOWN_SRC) /link $(LDFLAGS) /out:$@
# Housekeeping
clean:
del $(HOEDOWN_SRC)
del hoedown.dll hoedown.exp hoedown.lib
del hoedown.exe smartypants.exe
# Generic object compilations
.c.obj:
$(CC) $(CFLAGS) /c $< /Fo$@
# Testing
test: hoedown.exe
python test\runner.py