Skip to content

Commit 5843ca7

Browse files
author
dokutoku
committed
Merge vmg#125 of the original project
2 parents 37728fb + 26cf57a commit 5843ca7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*.o
22
libsundown.so*
3+
libsundown.a
34
sundown
45
smartypants
56
*.exe

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ DEPDIR=depends
2222
CFLAGS=-c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml
2323
LDFLAGS=-g -O3 -Wall -Werror
2424
CC=gcc
25+
AR=ar
2526

2627

2728
SUNDOWN_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
4647
libsundown.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

5155
sundown: examples/sundown.o $(SUNDOWN_SRC)
@@ -64,7 +68,7 @@ src/html_blocks.h: html_block_names.txt
6468
# housekeeping
6569
clean:
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

0 commit comments

Comments
 (0)