File: Makefile

package info (click to toggle)
glusterfs 11.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 28,240 kB
  • sloc: ansic: 471,238; sh: 45,610; python: 16,893; perl: 3,328; makefile: 2,014; yacc: 487; ruby: 171; lisp: 124; xml: 75; lex: 61
file content (22 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 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 \
	bug1283983 bug1291259 gfapi-ssl-test gfapi-load-volfile \
        mandatory-lock-optimal

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

all: check-pkgconfig $(BINARIES)

clean:
	-$(RM) $(BINARIES)

.phony: check-pkgconfig

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