Commit 5843ca7 dokutoku
committed
File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
* .o
2
2
libsundown.so *
3
+ libsundown.a
3
4
sundown
4
5
smartypants
5
6
* .exe
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ DEPDIR=depends
22
22
CFLAGS =-c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml
23
23
LDFLAGS =-g -O3 -Wall -Werror
24
24
CC =gcc
25
+ AR =ar
25
26
26
27
27
28
SUNDOWN_SRC =\
@@ -34,7 +35,7 @@ SUNDOWN_SRC=\
34
35
html/houdini_html_e.o \
35
36
html/houdini_href_e.o
36
37
37
- all : libsundown.so sundown smartypants html_blocks
38
+ all : libsundown.so libsundown.a sundown smartypants html_blocks
38
39
39
40
.PHONY : all clean
40
41
@@ -46,6 +47,9 @@ libsundown.so: libsundown.so.1
46
47
libsundown.so.1 : $(SUNDOWN_SRC )
47
48
$(CC ) $(LDFLAGS ) -shared -Wl $^ -o $@
48
49
50
+ libsundown.a : $(SUNDOWN_SRC )
51
+ $(AR ) rcs libsundown.a $^
52
+
49
53
# executables
50
54
51
55
sundown : examples/sundown.o $(SUNDOWN_SRC )
@@ -64,7 +68,7 @@ src/html_blocks.h: html_block_names.txt
64
68
# housekeeping
65
69
clean :
66
70
rm -f src/* .o html/* .o examples/* .o
67
- rm -f libsundown.so libsundown.so.1 sundown smartypants
71
+ rm -f libsundown.so libsundown.so.1 libsundown.a sundown smartypants
68
72
rm -f sundown.exe smartypants.exe
69
73
rm -rf $(DEPDIR )
70
74
You can’t perform that action at this time.
0 commit comments