diff options
author | Camil Staps | 2016-03-16 22:57:32 +0100 |
---|---|---|
committer | Camil Staps | 2016-03-16 22:57:32 +0100 |
commit | 439d1ce7093b9ee02d4bbacad728d9d40c5efc73 (patch) | |
tree | 16c945a6f6e21e9153b22d0b8eadb77a4fb53e78 /project1/proj1_s4498062/Makefile | |
parent | Project 1: started with persistent connections (diff) |
Project 1: makefile, gitignore
Diffstat (limited to 'project1/proj1_s4498062/Makefile')
-rw-r--r-- | project1/proj1_s4498062/Makefile | 21 |
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 + |