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