Skip to content

Commit

Permalink
Set up build system.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 13, 2011
1 parent 5cd6452 commit 99989a2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.[oa]
*.so
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CC = gcc
CFLAGS = -Ideps/uv/include -Wall -Wextra -g -O0 -fPIC

CFLAGS += $(shell python-config --includes)
LDFLAGS += $(shell python-config --ldflags)

.PHONY = all clean

all: src/uv.o deps/uv/uv.a
$(CC) -shared -o pyuv.so $^

clean:
rm -f src/uv.o pyuv.so

distclean: clean
$(MAKE) -C deps/uv $@

deps/uv/uv.a:
$(MAKE) -C deps/uv CFLAGS="-Wall -Wextra -fPIC"

0 comments on commit 99989a2

Please sign in to comment.