From 9b44098817abefdc5df4627f751980181b410e9c Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Fri, 13 May 2022 17:48:44 -0500 Subject: toy to load config from env vars --- sandbox/envvar/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sandbox/envvar/Makefile (limited to 'sandbox/envvar/Makefile') 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 -- cgit v1.2.3