summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6cf34d9dabcc9fd688f1eefc15fc97c06d9ae6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CFLAGS += -std=c11
CPPFLAGS += -I$(CURDIR)/lib
CPPFLAGS += -I$(CURDIR)/hack
CFLAGS += -Wall -Werror -Wextra
CPPFLAGS += -O2 -D_FORTIFY_SOURCE=2

all: cow-dedupe-range
all: cow-extent-map
.PHONY: all

%: src/%.o
	$(CC) $(LDFLAGS) -o $@ $^

cow-dedupe-range: lib/dedupe-range.o
cow-extent-map: lib/extent-map.o

.SECONDARY:
.DELETE_ON_ERROR: