Files
xen/tools/memshr/Makefile
T
Ian Jackson fff4aa914d DEPS handling: Use DEPS_INCLUDE everywhere
DEPS_INCLUDE is currently the same as DEPS, so no functional change.

This patch is the result of this perl rune:

  git-grep -l 'include.*DEPS' | xargs perl -i -pe 'next unless m/^-?include/; s/\bDEPS\b/DEPS_INCLUDE/'

I have verified that I haven't missed anything, with this rune:

  git-grep '\bDEPS\b'

Reported-by: Jan Beulich <JBeulich@suse.com>
CC: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
2017-09-07 16:21:54 +01:00

50 lines
1.0 KiB
Makefile

XEN_ROOT = $(CURDIR)/../..
include $(XEN_ROOT)/tools/Rules.mk
LIBMEMSHR-BUILD := libmemshr.a
CFLAGS += -Werror
CFLAGS += -Wno-unused
CFLAGS += $(CFLAGS_xeninclude)
CFLAGS += $(CFLAGS_libxenctrl)
CFLAGS += -D_GNU_SOURCE
CFLAGS += -fPIC
LIB-SRCS := interface.c
LIB-SRCS += shm.c
LIB-SRCS += bidir-daemon.c
LIB-SRCS += bidir-hash.c
LIB-OBJS := interface.o
LIB-OBJS += shm.o
LIB-OBJS += bidir-daemon.o
LIB-OBJS += bidir-hash-fgprtshr.o
LIB-OBJS += bidir-hash-blockshr.o
all: build
build: $(LIBMEMSHR-BUILD)
bidir-hash-fgprtshr.o: bidir-hash.c
$(CC) $(CFLAGS) -DFINGERPRINT_MAP -c -o $*.o bidir-hash.c
bidir-hash-blockshr.o: bidir-hash.c
$(CC) $(CFLAGS) -DBLOCK_MAP -c -o $*.o bidir-hash.c
libmemshr.a: $(LIB-OBJS)
$(AR) rc $@ $^
install: all
uninstall:
clean:
rm -rf *.a *.o *~ $(DEPS_RM)
.PHONY: distclean
distclean: clean
.PHONY: all build clean install distclean uninstall
-include $(DEPS_INCLUDE)