summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2023-03-02 23:06:40 -0700
committerAaron Ball <nullspoon@oper.io>2023-03-02 23:08:51 -0700
commit7e3039e76a49c8231627e9e33d76ed8bf043a8d2 (patch)
tree861980bdc2fd17c33ffac14dd545c2388d7d2cca
parent3dc64d80d7c1f1a0475665e0cdcefe2eff9b3036 (diff)
downloadleak-utils-master.tar.gz
leak-utils-master.tar.xz
Improve makefileHEADmaster
This renames the targets so they don't conflict after the targets are built. This also adds CCOPTS so compile arguments are centralized.
-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