File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11* .o
22libsundown.so *
3+ libsundown.a
34sundown
45smartypants
56* .exe
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ DEPDIR=depends
2222CFLAGS =-c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml
2323LDFLAGS =-g -O3 -Wall -Werror
2424CC =gcc
25+ AR =ar
2526
2627
2728SUNDOWN_SRC =\
@@ -34,7 +35,7 @@ SUNDOWN_SRC=\
3435 html/houdini_html_e.o \
3536 html/houdini_href_e.o
3637
37- all : libsundown.so sundown smartypants html_blocks
38+ all : libsundown.so libsundown.a sundown smartypants html_blocks
3839
3940.PHONY : all clean
4041
@@ -46,6 +47,9 @@ libsundown.so: libsundown.so.1
4647libsundown.so.1 : $(SUNDOWN_SRC )
4748 $(CC ) $(LDFLAGS ) -shared -Wl $^ -o $@
4849
50+ libsundown.a : $(SUNDOWN_SRC )
51+ $(AR ) rcs libsundown.a $^
52+
4953# executables
5054
5155sundown : examples/sundown.o $(SUNDOWN_SRC )
@@ -64,7 +68,7 @@ src/html_blocks.h: html_block_names.txt
6468# housekeeping
6569clean :
6670 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
6872 rm -f sundown.exe smartypants.exe
6973 rm -rf $(DEPDIR )
7074
You can’t perform that action at this time.
0 commit comments