Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.o
libsundown.so*
libsundown.a
sundown
smartypants
*.exe
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ DEPDIR=depends
CFLAGS=-c -g -O3 -fPIC -Wall -Werror -Wsign-compare -Isrc -Ihtml
LDFLAGS=-g -O3 -Wall -Werror
CC=gcc
AR=ar


SUNDOWN_SRC=\
Expand All @@ -34,7 +35,7 @@ SUNDOWN_SRC=\
html/houdini_html_e.o \
html/houdini_href_e.o

all: libsundown.so sundown smartypants html_blocks
all: libsundown.so libsundown.a sundown smartypants html_blocks

.PHONY: all clean

Expand All @@ -46,6 +47,9 @@ libsundown.so: libsundown.so.1
libsundown.so.1: $(SUNDOWN_SRC)
$(CC) $(LDFLAGS) -shared -Wl $^ -o $@

libsundown.a: $(SUNDOWN_SRC)
$(AR) rcs libsundown.a $^

# executables

sundown: examples/sundown.o $(SUNDOWN_SRC)
Expand All @@ -64,7 +68,7 @@ src/html_blocks.h: html_block_names.txt
# housekeeping
clean:
rm -f src/*.o html/*.o examples/*.o
rm -f libsundown.so libsundown.so.1 sundown smartypants
rm -f libsundown.so libsundown.so.1 libsundown.a sundown smartypants
rm -f sundown.exe smartypants.exe
rm -rf $(DEPDIR)

Expand Down