]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - makefile
Add LICENSE and README files.
[apply-default-acl.git] / makefile
index 602d6fd4c6e3f5321e2f691b83dfbeeca49182c6..a0289cbfa0b298233a29fefad9bfac623b782a56 100644 (file)
--- 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