aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b332cdab20f858515374c83157118e3db8ffd8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: clean

.SUFFIXES:
.SUFFIXES: .c .o

SHELL=/bin/sh
CC=gcc
CFLAGS=-Wall -Wextra -Wformat -Wswitch-default -Wuninitialized -Wunused

colorize:	colorize.o
			$(CC) -o $@ $<

colorize.o:	colorize.c
			$(CC) $(CFLAGS) -c $< -DCFLAGS="$(CFLAGS)"

check:
			perl ./test.pl

clean:
			[ -e colorize.o ] && rm colorize.o; exit 0