X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=a0289cbfa0b298233a29fefad9bfac623b782a56;hb=9b560cbf082997fed089cbc24e994f94691fcd28;hp=602d6fd4c6e3f5321e2f691b83dfbeeca49182c6;hpb=263849b3e05d7ed79fffb0751683ecd740cc90af;p=apply-default-acl.git diff --git a/makefile b/makefile index 602d6fd..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,14 +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: aclq +test: $(BIN) ./run-tests.sh