]> gitweb.michael.orlitzky.com - apply-default-acl.git/blob - makefile
Add -Wall and fix warnings.
[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 clean:
16 rm -f $(OBJS)
17 rm -f aclq