summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7e04cba..557bf60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,8 @@
-all:
- gcc -D_GNU_SOURCE -std=c99 -Os -g -Wall -Wextra -pedantic -o jawol jawol.c
+CC ?= gcc
+CFLAGS := -D_GNU_SOURCE -std=c99 -Os -g -Wall -Wextra -pedantic $(CFLAGS)
+
+jawol: jawol.c
+ $(CC) -o $@ $^ $(CFLAGS)
+
+clean:
+ rm -f -- jawol