summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-29 15:27:46 +0100
committerSimon Rettberg2019-11-29 15:27:46 +0100
commit207b222deaaf4a4d58d8ec7c16fef4ca897ac073 (patch)
treeda4daa8855c38a5d99154d265576f76810c2ae89 /Makefile
parentAdd missing return statement (diff)
downloadjawol-207b222deaaf4a4d58d8ec7c16fef4ca897ac073.tar.gz
jawol-207b222deaaf4a4d58d8ec7c16fef4ca897ac073.tar.xz
jawol-207b222deaaf4a4d58d8ec7c16fef4ca897ac073.zip
Add "listen for WOL" 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