blob: 316c9b81d47290591151184e668bd5f7afd92f2e (
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
26
27
28
|
CC ?= gcc
LOLCAT_SRC ?= lolcat.c
CENSOR_SRC ?= censor.c
CFLAGS ?= -std=c11 -Wall -Wextra -O3 -Wno-sign-compare
LIBS := -lm
DESTDIR ?= /usr/local/bin
all: lolcat censor
debug: CFLAGS += -g
debug: all
.PHONY: install clean debug
lolcat: $(LOLCAT_SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
censor: $(CENSOR_SRC)
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
install: lolcat censor
install lolcat $(DESTDIR)/lolcat
install censor $(DESTDIR)/censor
clean:
rm -f lolcat censor
|