From d1f20f129d6db049cb002cd92bd85ca277898e80 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 26 Feb 2015 15:37:13 +0200 Subject: [PATCH] - Added Makefile. --- .gitignore | 1 + Makefile | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 6daa49c..c618b34 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ a.out *.pyc +__pycache__/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2404720 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: python3 c + +python3: prime.py + pycompile -V 3.4 prime.py + +c: prime.c + gcc --std=c99 -Wall -lm prime.c + +clean: + rm -r a.out __pycache__ -- GitLab