CC ?= gcc LOLCAT_SRC ?= lolcat.c CENSOR_SRC ?= censor.c CFLAGS ?= -std=c11 -Wall -Wextra -O3 DESTDIR ?= /usr/local/bin all: lolcat censor debug: CFLAGS += -g debug: all .PHONY: install clean debug lolcat: $(LOLCAT_SRC) $(CC) $(CFLAGS) -o $@ $^ censor: $(CENSOR_SRC) $(CC) $(CFLAGS) -o $@ $^ install: lolcat censor install lolcat $(DESTDIR)/lolcat install censor $(DESTDIR)/censor clean: rm -f lolcat censor