summary refs log tree commit diff
path: root/src/rt/sundown/Makefile.win
blob: ea668b2cdc1ecdd3ac95ec8e35192271a32cd8f0 (plain)
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

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$@