aboutsummaryrefslogtreecommitdiff
path: root/sandbox/envvar/Makefile
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-05-13 17:48:44 -0500
committerMichael McVady <femtonaut@gmail.com>2022-05-13 17:48:44 -0500
commit9b44098817abefdc5df4627f751980181b410e9c (patch)
treeee16304c9c9866cf57a3d8d15d486cea6ff01cb3 /sandbox/envvar/Makefile
parentc29cd47dede03e0e37b3c91c7e7d8022965fb010 (diff)
toy to load config from env vars
Diffstat (limited to 'sandbox/envvar/Makefile')
-rw-r--r--sandbox/envvar/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/sandbox/envvar/Makefile b/sandbox/envvar/Makefile
new file mode 100644
index 0000000..ae4c74e
--- /dev/null
+++ b/sandbox/envvar/Makefile
@@ -0,0 +1,15 @@
+.PHONY: run clean
+
+CC = gcc
+CFLAGS = -g -Wall -Wmissing-declarations -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wsign-compare
+
+all: envvar
+
+envvar: envvar.c
+ $(CC) $(CFLAGS) -std=c99 -pedantic -o envvar envvar.c
+
+run:
+ ./envvar
+
+clean:
+ rm envvar