aboutsummaryrefslogtreecommitdiff
path: root/sandbox/envvar/Makefile
diff options
context:
space:
mode:
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