Debian Codegraph @

tools/tests/xenstore/Makefile

raw symbols SCIP
1 XEN_ROOT=$(CURDIR)/../../..
2 include $(XEN_ROOT)/tools/Rules.mk
3
4 TARGETS-y := test-xenstore
5 TARGETS := $(TARGETS-y)
6
7 .PHONY: all
8 all: build
9
10 .PHONY: build
11 build: $(TARGETS)
12
13 .PHONY: clean
14 clean:
15 $(RM) -- *.o $(TARGETS) $(DEPS_RM)
16
17 .PHONY: distclean
18 distclean: clean
19 $(RM) -- *~
20
21 .PHONY: install
22 install: all
23 $(INSTALL_DIR) $(DESTDIR)$(LIBEXEC_BIN)
24 $(if $(TARGETS),$(INSTALL_PROG) $(TARGETS) $(DESTDIR)$(LIBEXEC_BIN))
25
26 .PHONY: uninstall
27 uninstall:
28 $(RM) -- $(addprefix $(DESTDIR)$(LIBEXEC_BIN)/,$(TARGETS))
29
30 CFLAGS += $(CFLAGS_libxenstore)
31 CFLAGS += $(APPEND_CFLAGS)
32
33 LDFLAGS += $(LDLIBS_libxenstore)
34 LDFLAGS += $(APPEND_LDFLAGS)
35 ifeq ($(CONFIG_Linux),y)
36 LDFLAGS += -Wl,--as-needed -lc -lrt
37 endif
38
39 %.o: Makefile
40
41 test-xenstore: test-xenstore.o
42 $(CC) -o $@ $< $(LDFLAGS)
43
44 -include $(DEPS_INCLUDE)