summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3420642..d308a8a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
-all: memleak balloon
+CCOPTS = -std=gnu99 -O2 -Wall
+all: _memleak _balloon _fdleak
clean:
rm -vf memleak balloon fdleak
-memleak:
- cc --std=gnu99 -O2 -Wall src/memleak.c -o memleak
+_memleak:
+ cc $(CCOPTS) src/memleak.c -o memleak
-balloon:
- cc --std=gnu99 -O2 -Wall src/balloon.c -o balloon
+_balloon:
+ cc $(CCOPTS) src/balloon.c -o balloon
-fdleak:
- cc --std=gnu99 -O2 -Wall src/fdleak.c -o fdleak
+_fdleak:
+ cc $(CCOPTS) src/fdleak.c -o fdleak

Generated by cgit