ia64/xen-unstable

view tools/xcs/Makefile @ 3966:0b9ff7354a95

bitkeeper revision 1.1236.1.47 (4225ff68LvKUt73k78dKjnXxsnQt7A)

Fix tools build. Clean up barrier defs.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
author kaf24@scramble.cl.cam.ac.uk
date Wed Mar 02 18:01:12 2005 +0000 (2005-03-02)
parents 8e0ac8ed218b
children a5931595eca4 720d41954256
line source
1 # Makefile for XCS
2 # Andrew Warfield, 2004
4 XEN_ROOT=../..
5 include $(XEN_ROOT)/tools/Rules.mk
7 XCS_INSTALL_DIR = /usr/sbin
9 INSTALL = install
10 INSTALL_PROG = $(INSTALL) -m0755
11 INSTALL_DIR = $(INSTALL) -d -m0755
13 CC = gcc
14 CFLAGS = -Wall -Werror -g3 -D _XOPEN_SOURCE=600
16 CFLAGS += -I $(XEN_XC)
17 CFLAGS += -I $(XEN_LIBXC)
18 CFLAGS += -I $(XEN_LIBXUTIL)
20 SRCS :=
21 SRCS += ctrl_interface.c
22 SRCS += bindings.c
23 SRCS += connection.c
24 SRCS += evtchn.c
25 SRCS += xcs.c
27 HDRS = $(wildcard *.h)
28 OBJS = $(patsubst %.c,%.o,$(SRCS))
29 BIN = xcs
31 all: $(BIN) xcsdump
33 clean:
34 $(RM) *.a *.so *.o *.rpm $(BIN) xcsdump
36 xcsdump: xcsdump.c
37 $(CC) $(CFLAGS) -o xcsdump xcsdump.c -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) \
38 ctrl_interface.c evtchn.c -lxc -lxutil
40 $(BIN): $(OBJS)
41 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil
43 install: xcs xcsdump
44 $(INSTALL_DIR) -p $(DESTDIR)/$(XCS_INSTALL_DIR)
45 $(INSTALL_DIR) -p $(DESTDIR)/usr/include
46 $(INSTALL_PROG) xcs $(DESTDIR)/$(XCS_INSTALL_DIR)
47 $(INSTALL_PROG) xcsdump $(DESTDIR)/$(XCS_INSTALL_DIR)
48 $(INSTALL_PROG) xcs_proto.h $(DESTDIR)/usr/include