X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fbuild%2FMakefile;h=e5c06120ad5d123429b4d3758a3e753a3b797515;hb=f032dd8f6f03c414f9d1f208845464ff76050b6c;hp=ccd3f0efffd9a6315ae4b05d6627b26554d750ab;hpb=b743d73b58d50cc91e4db88a707356adc9298cbc;p=palacios.releases.git diff --git a/palacios/build/Makefile b/palacios/build/Makefile index ccd3f0e..e5c0612 100644 --- a/palacios/build/Makefile +++ b/palacios/build/Makefile @@ -1,7 +1,16 @@ # Makefile for GeekOS kernel, userspace, and tools +# +# Northwestern University +# (c) 2008, Jack Lange +# (c) 2008, Peter Dinda +# (c) 2008, Lei Xia +# (c) 2008, The V3VEE Project +# +# Based on GeekOS Makefile: # Copyright (c) 2004,2005 David H. Hovemeyer # $Revision: 1.71 $ + # This is free software. You are permitted to use, # redistribute, and modify it as specified in the file "COPYING". @@ -172,7 +181,12 @@ endif # #TCPSTACK, uIP is used currently # -TCPSTACK=UIP +UIP=ON + +# +#LWIP, ON -- used, OFF -- not used +# +LWIP=ON # #RAMDISK @@ -295,11 +309,23 @@ DEVICE_OBJS := $(DEVICE_C_OBJS) V3LIBS := $(DECODER_LIBS) -TCPSTACK_C_SRCS := psock.c timer.c uip_arp.c uip.c uip-fw.c uiplib.c uip-neighbor.c uip-split.c resolv.c -TCPSTACK_C_OBJS := $(TCPSTACK_C_SRCS:%.c=net/%.o) -TCPSTACK_OBJS := $(TCPSTACK_C_OBJS) +ifeq ($(UIP),ON) + UIP_C_SRCS := psock.c timer.c uip_arp.c uip.c uip-fw.c uiplib.c uip-neighbor.c uip-split.c resolv.c + UIP_C_OBJS := $(UIP_C_SRCS:%.c=net/%.o) +else + UIP_C_SRCS := + UIP_C_OBJS := +endif + +ifeq ($(LWIP),ON) + LWIP_OBJS := lwip/*.o +else + LWIP_OBJS := +endif + +TCPSTACK_OBJS := $(UIP_C_OBJS) $(LWIP_OBJS) @@ -468,6 +494,9 @@ rombios_link: vgabios_link: ln -s -f ../src/vmboot/vgabios/VGABIOS-lgpl-latest.bin vgabios +force_lwip: + (cd ../src/lwip/build; make clean; make) + force_rombios: rombios_link (cd ../src/vmboot/rombios; make clean; make) @@ -477,7 +506,7 @@ force_vgabios: vgabios_link force_payload: force_rombios force_vgabios ../scripts/make_payload.pl payload_layout.txt vm_kernel -inter1: force_payload +inter1: force_payload force_lwip -make clean world: inter1 vmm.img