summaryrefslogtreecommitdiff
path: root/pgm5/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pgm5/makefile')
-rw-r--r--pgm5/makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/pgm5/makefile b/pgm5/makefile
new file mode 100644
index 0000000..4de261f
--- /dev/null
+++ b/pgm5/makefile
@@ -0,0 +1,11 @@
+all: counter
+
+counter: counter.c
+ gcc -D_REENTRANT -o counter counter.c -lpthread
+
+debug: counter.c
+ gcc -Wall -g -D_REENTRANT -Datcdebug -o counter counter.c -lpthread
+
+clean:
+ rm -f counter
+ gcc -D_REENTRANT -o counter counter.c -lpthread