From: Lei Xia Date: Wed, 6 Apr 2011 19:57:28 +0000 (-0500) Subject: add conditional build to module Makefile X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=a0b473abee90ee85c0c9d24f69e8768b34171704;p=palacios.releases.git add conditional build to module Makefile --- diff --git a/linux_module/Makefile b/linux_module/Makefile index 4732a3a..7b744cc 100644 --- a/linux_module/Makefile +++ b/linux_module/Makefile @@ -14,10 +14,16 @@ v3vee-objs:= palacios.o \ palacios-serial.o \ palacios-queue.o \ palacios-ringbuffer.o -# palacios-socket.o \ -# palacios-vnet.o \ -# palacios-packet.o \ -# palacios-hashtable.o + +ifdef CONFIG_PALACIOS_VNET + v3vee-objs += palacios-vnet.o +endif +ifdef CONFIG_PALACIOS_PACKET + v3vee-objs += palacios-packet.o palacios-hashtable.o +endif +ifdef CONFIG_PALACIOS_SOCKET + v3vee-objs += palacios-socket.o +endif v3vee-objs += ../libv3vee.a