summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9693ea43f4fcddf069f9f45d620e207c0111710c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS += -std=c11

CPPFLAGS += -I$(CURDIR)/lib
CPPFLAGS += -I$(CURDIR)/hack

CFLAGS += -g

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 lib/strextentflags.o

.SECONDARY:
.DELETE_ON_ERROR: