Permalink
Browse files

Set up build system.

  • Loading branch information...
1 parent 5cd6452 commit 99989a27a57e384f7499ee9b4e62b9b743f9b44d @bnoordhuis bnoordhuis committed Aug 13, 2011
Showing with 20 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +19 −0 Makefile
View
@@ -1 +1,2 @@
*.[oa]
+*.so
View
@@ -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.