diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b332cda --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |