]> gitweb.michael.orlitzky.com - apply-default-acl.git/blob - makefile
Add LICENSE and README files.
[apply-default-acl.git] / makefile
1 CC = gcc
2 CFLAGS = -O2 -march=native -pipe -Wall
3 LIBS = -lacl
4
5 BIN := reapply_default_acl
6 SOURCES := $(shell find ./src -type f -name '*.c')
7 HEADERS := $(shell find ./src -type f -name '*.h')
8 OBJS := $(patsubst %.c, %.o, $(SOURCES))
9
10 %.o: %.c $(HEADERS)
11 $(CC) $(CFLAGS) -c -o $@ $<
12
13 $(BIN): $(OBJS)
14 $(CC) $(CFLAGS) $(LIBS) -o $@ $^
15
16 .PHONY: clean test
17
18 clean:
19 rm -f $(OBJS)
20 rm -f $(BIN)
21
22 test: $(BIN)
23 ./run-tests.sh