aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2014-05-24 21:32:07 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2014-05-24 21:32:07 +0300
commitf3d7fe4ca0679b199860d883b086bc443d1c29f8 (patch)
treee7854ab60244bfa4ef0fb97274e844de86e355e6 /Makefile
downloadlibuvh-f3d7fe4ca0679b199860d883b086bc443d1c29f8.tar.gz
libuvh-f3d7fe4ca0679b199860d883b086bc443d1c29f8.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..12a7c64
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+CC = gcc
+LD = gcc
+AR = ar
+
+CFLAGS += -Wall -g -O0
+LDFLAGS +=
+CPPFLAGS += -Isrc
+LDLIBS += -luv
+
+libuvh.a: src/uvh.o src/http_parser.o src/sds.o
+ $(AR) rcs $@ $^
+
+hello: examples/hello.o libuvh.a
+ $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+
+.PHONY: clean
+clean:
+ rm -f src/*.o
+ rm -f examples/*.o
+ rm -f libuvh.a
+ rm -f hello