]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - makefile
Add LICENSE and README files.
[apply-default-acl.git] / makefile
index d6be6c5a2e589ed8a74153be6199128b14957e42..a0289cbfa0b298233a29fefad9bfac623b782a56 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,8 @@
 CC = gcc
-CFLAGS = -O2 -march=native -pipe
+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