ia64/xen-unstable

view tools/xcs/Makefile @ 3523:2cf794f4d28c

bitkeeper revision 1.1159.212.36 (41f5b27eVQ8sFZbTAxrN9sb2Nbirbg)

Merge freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@freefall.cl.cam.ac.uk
date Tue Jan 25 02:44:14 2005 +0000 (2005-01-25)
parents a9ac02b7727d 8f5003f54216
children d8ba911dce48 d253f9536cfb 30ee9c427a5b
line source
1 # Makefile for XCS
2 # Andrew Warfield, 2004
4 XEN_ROOT=../..
5 include $(XEN_ROOT)/tools/Make.defs
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) ctrl_dump
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