ia64/xen-unstable

view tools/vnet/vnetd/Makefile @ 3498:1d24a5b0b338

bitkeeper revision 1.1159.223.25 (41f2cb9aEKMZkZbvqBE0eXhpljlV4Q)

Description: fix path to python
There is no python2 in debian. Instead, use python.

From: Adam Heath <doogie@brainfood.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@labyrinth.cl.cam.ac.uk
date Sat Jan 22 21:54:34 2005 +0000 (2005-01-22)
parents f65b65977b19
children 5c6d547e4e59 f7ab8a19799b d8ba911dce48 0dc3b8b8c298
line source
1 # -*- mode: Makefile; -*-
2 #----------------------------------------------------------------------------
3 # Copyright (C) 2004 Mike Wray <mike.wray@hp.com>.
4 #
5 # This library is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2.1 of the
8 # License, or (at your option) any later version. This library is
9 # distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE.
12 # See the GNU Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with this library; if not, write to the Free Software Foundation,
16 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 #----------------------------------------------------------------------------
19 all: vnetd
21 #----------------------------------------------------------------------------
23 XEN_ROOT = ../../..
24 include $(XEN_ROOT)/tools/Make.defs
26 VNETD_INSTALL_DIR = /usr/sbin
28 LIB_DIR = $(XEN_LIBXUTIL)
29 VNET_DIR = ../vnet-module
31 INCLUDES += -I$(LIB_DIR)
32 INCLUDES += -I$(VNET_DIR)
34 #----------------------------------------------------------------------------
35 # GC.
36 GC_DIR:=../gc/install
37 GC_INCLUDE:= $(GC_DIR)/include
38 GC_LIB_DIR:=$(GC_DIR)/lib
40 INCLUDES += -I$(GC_INCLUDE)
41 #LIBS += -L$(GC_LIB_DIR)
42 CPPFLAGS += -D USE_GC
44 #----------------------------------------------------------------------------
45 CFLAGS += -g
46 CFLAGS += -Wall
47 CFLAGS += $(INCLUDES) $(LIBS)
49 LDFLAGS += $(LIBS)
51 # Dependencies. Gcc generates them for us.
52 CFLAGS += -Wp,-MD,.$(@F).d
53 PROG_DEP = .*.d
55 vpath %.c $(LIB_DIR)
57 IPATHS:=$(INCLUDES:-I=)
58 vpath %.h $(IPATHS)
60 #----------------------------------------------------------------------------
61 VNETD_SRC:=
62 VNETD_SRC+= connection.c
63 VNETD_SRC+= marshal.c
64 VNETD_SRC+= select.c
65 VNETD_SRC+= timer.c
66 VNETD_SRC+= vcache.c
67 VNETD_SRC+= vnetd.c
69 LIB_SRC:=
70 LIB_SRC+= allocate.c
71 LIB_SRC+= enum.c
72 LIB_SRC+= file_stream.c
73 LIB_SRC+= hash_table.c
74 LIB_SRC+= iostream.c
75 LIB_SRC+= lexis.c
76 LIB_SRC+= socket_stream.c
77 LIB_SRC+= string_stream.c
78 LIB_SRC+= sxpr.c
79 LIB_SRC+= sys_net.c
80 LIB_SRC+= sys_string.c
81 LIB_SRC+= util.c
83 VNETD_SRC+=$(LIB_SRC)
85 VNETD_OBJ := $(VNETD_SRC:.c=.o)
87 #VNETD_LIBS:= $(GC_LIB_DIR)/libgc.so.1.0.2
88 #VNETD_LIBS:= -lgc
89 VNETD_LIBS:= $(GC_LIB_DIR)/libgc.a
91 vnetd: $(VNETD_OBJ)
92 $(CC) $(CFLAGS) -o $@ $^ $(VNETD_LIBS) -ldl -lpthread
94 install: vnetd
95 mkdir -p $(prefix)/$(VNETD_INSTALL_DIR)
96 install -m 0755 vnetd $(prefix)/$(VNETD_INSTALL_DIR)
98 clean:
99 -rm -f *.a *.o *~
100 -rm -f vnetd
101 -rm -f $(PROG_DEP)
103 -include $(PROG_DEP)