summaryrefslogtreecommitdiff
path: root/project1/proj1_s4498062/Makefile
diff options
context:
space:
mode:
authorCamil Staps2016-03-16 22:57:32 +0100
committerCamil Staps2016-03-16 22:57:32 +0100
commit439d1ce7093b9ee02d4bbacad728d9d40c5efc73 (patch)
tree16c945a6f6e21e9153b22d0b8eadb77a4fb53e78 /project1/proj1_s4498062/Makefile
parentProject 1: started with persistent connections (diff)
Project 1: makefile, gitignore
Diffstat (limited to 'project1/proj1_s4498062/Makefile')
-rw-r--r--project1/proj1_s4498062/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/project1/proj1_s4498062/Makefile b/project1/proj1_s4498062/Makefile
new file mode 100644
index 0000000..541303d
--- /dev/null
+++ b/project1/proj1_s4498062/Makefile
@@ -0,0 +1,21 @@
+CYTHON=cython
+CYTHONFLAGS=--embed
+
+CCFLAGS=-Os -I/usr/include/python2.7 -lpython2.7 -lpthread -lutil -lm -ldl
+
+all: webserver
+
+webserver.c: webserver.py webhttp/*
+ $(CYTHON) $(CYTHONFLAGS) -o $@ $<
+
+webserver: webserver.c
+ $(CC) $(CCFLAGS) -o $@ $<
+
+run: webserver
+ ./webserver
+
+clean:
+ rm -vf webserver webserver.c
+
+.PHONY: clean all run
+