ia64/xen-unstable

view tools/vnet/vnetd/Makefile @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children 06d84bf87159
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 VNET_ROOT = $(shell cd .. && pwd)
20 include $(VNET_ROOT)/Make.env
22 all: vnetd
24 #----------------------------------------------------------------------------
26 include $(XEN_ROOT)/tools/Rules.mk
28 VNETD_INSTALL_DIR = /usr/sbin
30 INCLUDES += -I$(LIBXUTIL_DIR)
31 INCLUDES += -I$(VNET_MODULE_DIR)
33 #----------------------------------------------------------------------------
34 # GC.
36 INCLUDES += -I$(GC_INCLUDE)
37 #LIBS += -L$(GC_LIB_DIR)
38 CPPFLAGS += -D USE_GC
40 #----------------------------------------------------------------------------
41 CFLAGS += -g
42 CFLAGS += -Wall
43 CFLAGS += $(INCLUDES) $(LIBS)
45 LDFLAGS += $(LIBS)
47 # Dependencies. Gcc generates them for us.
48 CFLAGS += -Wp,-MD,.$(@F).d
49 PROG_DEP = .*.d
51 vpath %.c $(LIBXUTIL_DIR)
53 IPATHS:=$(INCLUDES:-I=)
54 vpath %.h $(IPATHS)
56 #----------------------------------------------------------------------------
57 VNETD_SRC:=
58 VNETD_SRC+= connection.c
59 VNETD_SRC+= marshal.c
60 VNETD_SRC+= select.c
61 VNETD_SRC+= timer.c
62 VNETD_SRC+= vcache.c
63 VNETD_SRC+= vnetd.c
65 LIB_SRC:=
66 LIB_SRC+= allocate.c
67 LIB_SRC+= enum.c
68 LIB_SRC+= file_stream.c
69 LIB_SRC+= hash_table.c
70 LIB_SRC+= iostream.c
71 LIB_SRC+= lexis.c
72 LIB_SRC+= socket_stream.c
73 LIB_SRC+= string_stream.c
74 LIB_SRC+= sxpr.c
75 LIB_SRC+= sys_net.c
76 LIB_SRC+= sys_string.c
77 LIB_SRC+= util.c
79 VNETD_SRC+=$(LIB_SRC)
81 VNETD_OBJ := $(VNETD_SRC:.c=.o)
83 #VNETD_LIBS:= $(GC_LIB_SO)
84 #VNETD_LIBS:= -lgc
85 VNETD_LIBS:= $(GC_LIB_A)
87 vnetd: $(VNETD_OBJ)
88 $(CC) $(CFLAGS) -o $@ $^ $(VNETD_LIBS) -ldl -lpthread
90 install: vnetd
91 mkdir -p $(DESTDIR)$(VNETD_INSTALL_DIR)
92 install -m 0755 vnetd $(DESTDIR)$(VNETD_INSTALL_DIR)
94 clean:
95 -@$(RM) *.a *.o *~
96 -@$(RM) vnetd
97 -@$(RM) $(PROG_DEP)
99 -include $(PROG_DEP)