direct-io.hg

view tools/vnet/vnetd/Makefile @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 9f22db685802
children 6bad5eb72ce0 dfaf788ab18c
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/Rules.mk
26 VNETD_INSTALL_DIR = /usr/sbin
28 LIB_DIR = ../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 += -Wall
46 CFLAGS += $(INCLUDES) $(LIBS)
48 LDFLAGS += $(LIBS)
50 # Dependencies. Gcc generates them for us.
51 CFLAGS += -Wp,-MD,.$(@F).d
52 PROG_DEP = .*.d
54 vpath %.c $(LIB_DIR)
56 IPATHS:=$(INCLUDES:-I=)
57 vpath %.h $(IPATHS)
59 #----------------------------------------------------------------------------
60 VNETD_SRC:=
61 VNETD_SRC+= connection.c
62 VNETD_SRC+= marshal.c
63 VNETD_SRC+= select.c
64 VNETD_SRC+= timer.c
65 VNETD_SRC+= vcache.c
66 VNETD_SRC+= vnetd.c
68 LIB_SRC:=
69 LIB_SRC+= allocate.c
70 LIB_SRC+= enum.c
71 LIB_SRC+= file_stream.c
72 LIB_SRC+= hash_table.c
73 LIB_SRC+= iostream.c
74 LIB_SRC+= lexis.c
75 LIB_SRC+= socket_stream.c
76 LIB_SRC+= string_stream.c
77 LIB_SRC+= sxpr.c
78 LIB_SRC+= sys_net.c
79 LIB_SRC+= sys_string.c
80 LIB_SRC+= util.c
82 VNETD_SRC+=$(LIB_SRC)
84 VNETD_OBJ := $(VNETD_SRC:.c=.o)
86 #VNETD_LIBS:= $(GC_LIB_DIR)/libgc.so.1.0.2
87 #VNETD_LIBS:= -lgc
88 VNETD_LIBS:= $(GC_LIB_DIR)/libgc.a
90 vnetd: $(VNETD_OBJ)
91 $(CC) $(CFLAGS) -o $@ $^ $(VNETD_LIBS) -ldl -lpthread
93 install: vnetd
94 mkdir -p $(DESTDIR)$(VNETD_INSTALL_DIR)
95 install -m 0755 vnetd $(DESTDIR)$(VNETD_INSTALL_DIR)
97 clean:
98 -rm -f *.a *.o *~
99 -rm -f vnetd
100 -rm -f $(PROG_DEP)
102 -include $(PROG_DEP)