summaryrefslogtreecommitdiffstats
path: root/tests/basic/gfapi/Makefile.am
blob: b166fcc3fa61a908c3a91447576b2983f6ced5af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## compiles against the *system* version of libgfapi,
## but not the libgfapi for the testcases

CFLAGS   = -Wall -g $(shell pkg-config --cflags glusterfs-api)
LDFLAGS  = $(shell pkg-config --libs glusterfs-api)

BINARIES = upcall-cache-invalidate libgfapi-fini-hang anonymous_fd seek

%: %.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^

all: check-pkgconfig $(BINARIES)

clean:
	-$(RM) $(BINARIES)

.phony: check-pkgconfig

check-pkgconfig:
	pkg-config --exists glusterfs-api