X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=a0289cbfa0b298233a29fefad9bfac623b782a56;hb=9b560cbf082997fed089cbc24e994f94691fcd28;hp=ffe3a9ea4a72866abd0e354a0dd2e028eb10af46;hpb=b09e79496d929d0e310ffeeb9e28c8949a56e10b;p=apply-default-acl.git diff --git a/makefile b/makefile index ffe3a9e..a0289cb 100644 --- a/makefile +++ b/makefile @@ -2,6 +2,7 @@ CC = gcc CFLAGS = -O2 -march=native -pipe -Wall LIBS = -lacl +BIN := reapply_default_acl SOURCES := $(shell find ./src -type f -name '*.c') HEADERS := $(shell find ./src -type f -name '*.h') OBJS := $(patsubst %.c, %.o, $(SOURCES)) @@ -9,9 +10,14 @@ OBJS := $(patsubst %.c, %.o, $(SOURCES)) %.o: %.c $(HEADERS) $(CC) $(CFLAGS) -c -o $@ $< -aclq: $(OBJS) +$(BIN): $(OBJS) $(CC) $(CFLAGS) $(LIBS) -o $@ $^ +.PHONY: clean test + clean: rm -f $(OBJS) - rm -f aclq + rm -f $(BIN) + +test: $(BIN) + ./run-tests.sh