blob: 1be84e5fe46968d6c27227805fd02e1cd88be2f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CC ?= gcc
LOLCAT_SRC ?= lolcat.c
CENSOR_SRC ?= censor.c
CFLAGS ?= -std=c11 -Wall -Wextra -g
DESTDIR ?= /usr/local/bin
all: lolcat censor
.PHONY: install clean
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
|