debuggers.hg

view tools/memshr/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
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)