1 2 3 4 5 6 7 8 9 10 11 12 13 14 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