aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a11d8808fdaf3626b020230f871cdcf464e3d8a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BF = brainfuck

CC     = gcc
CFLAGS = -ansi -pedantic -Wall -Wextra -Werror

INDENT_OPT = -bap -bad -bbb -bl -bli0 -bls \
			 -c2 -cli2 -cdb -sc -ncs -npcs \
			 -nhnl -i4 -l80 -saf -sai -saw \
			 -nprs -sob -nut -nbc -ppi2 -nbbo

all: $(BF) README

$(BF): $(BF).c
	$(CC) $(CFLAGS) -o $(BF) $(BF).c

README: $(BF)
	./$(BF) -h > $@

indent: $(BF).c
	indent $(INDENT_OPT) $?

.PHONY: indent