debuggers.hg

view tools/memshr/Makefile @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 1b81d0607af9
children
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 LIBMEMSHR-BUILD := libmemshr.a
6 CFLAGS += -Werror
7 CFLAGS += -Wno-unused
8 CFLAGS += -I../include
9 CFLAGS += $(CFLAGS_libxenctrl)
10 CFLAGS += -D_GNU_SOURCE
11 CFLAGS += -fPIC
12 CFLAGS += -g
14 # Get gcc to generate the dependencies for us.
15 CFLAGS += -Wp,-MD,.$(@F).d
16 DEPS = .*.d
18 LIB-SRCS := interface.c
19 LIB-SRCS += shm.c
20 LIB-SRCS += bidir-daemon.c
21 LIB-SRCS += bidir-hash.c
23 LIB-OBJS := interface.o
24 LIB-OBJS += shm.o
25 LIB-OBJS += bidir-daemon.o
26 LIB-OBJS += bidir-hash-fgprtshr.o
27 LIB-OBJS += bidir-hash-blockshr.o
29 all: build
31 build: $(LIBMEMSHR-BUILD)
33 bidir-hash-fgprtshr.o: bidir-hash.c
34 $(CC) $(CFLAGS) -DFINGERPRINT_MAP -c -o $*.o bidir-hash.c
36 bidir-hash-blockshr.o: bidir-hash.c
37 $(CC) $(CFLAGS) -DBLOCK_MAP -c -o $*.o bidir-hash.c
39 libmemshr.a: $(LIB-OBJS)
40 $(AR) rc $@ $^
42 install: all
44 clean:
45 rm -rf *.a *.o *~ $(DEPS)
47 .PHONY: all build clean install
49 -include $(DEPS)