aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a51d1c3f032d7ad22dc85e82008b3616479264f7 (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 -Wno-unused-parameter

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