Makefile: add -Wall

This commit is contained in:
Vlasta Vesely 2018-06-09 16:20:43 +02:00
parent 48619fe120
commit 2d6547a435

View file

@ -2,18 +2,19 @@ PREFIX=/usr
.PHONY: main test install uninstall clean
CFLAGS := -Wall
SRCFILES := $(shell find . -type f -name "*.c")
OBJFILES := $(patsubst %.c, %.o, $(SRCFILES))
iast: main.o $(OBJFILES)
$(CC) $^ -o $@
$(CC) $^ -o $@ $(CFLAGS)
test: iast
sh tests/test.sh
%.o: %.c
$(CC) -MMD -MP -c $< -o $@
$(CC) -MMD -MP -c $< -o $@ $(CFLAGS)
install:
install -m 0755 iast $(PREFIX)/bin