diff --git a/Makefile b/Makefile index 02a5a3f..a4d8a12 100644 --- a/Makefile +++ b/Makefile @@ -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