X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=8e51d8f8947df774b37c5b1067ecf8b64a145326;hp=bb0860b8a3642562d701575ff9a3128ac1a29a16;hb=66c338acdc299d7496da982999ff3cd3828e442a;hpb=68f8c4cd303c5da40c1083cbabdaf6395e4dbaa1 diff --git a/Makefile b/Makefile index bb0860b..8e51d8f 100644 --- a/Makefile +++ b/Makefile @@ -483,6 +483,13 @@ else DEFAULT_EXTRA_TARGETS= endif +ifdef V3_CONFIG_NAUTILUS +DEFAULT_EXTRA_TARGETS=nautilus +else +DEFAULT_EXTRA_TARGETS= +endif + + # The all: target is the default when no target is given on the # command line. # This allow a user to issue only 'make' to build a kernel including modules @@ -493,8 +500,19 @@ all: palacios $(DEFAULT_EXTRA_TARGETS) ifdef V3_CONFIG_LINUX CFLAGS += -mcmodel=kernel else +ifdef V3_CONFIG_NAUTILUS +CFLAGS += -O2 \ + -fno-omit-frame-pointer \ + -ffreestanding \ + -fno-stack-protector \ + -fno-strict-aliasing \ + -mno-red-zone \ + -mcmodel=large +LDFLAGS += -z max-page-size=0x1000 +else CFLAGS += -fPIC endif +endif ifdef V3_CONFIG_FRAME_POINTER CFLAGS += -fno-omit-frame-pointer $(call cc-option,-fno-optimize-sibling-calls,) @@ -639,6 +657,11 @@ linux_module/v3vee.ko: linux_module/*.c linux_module/*.h libv3vee.a linux_module: linux_module/v3vee.ko +nautilus/libnautilus.a: nautilus/*.c nautilus/*.h libv3vee.a + cd nautilus/ && make + cp nautilus/libnautilus.a . + +nautilus: nautilus/libnautilus.a palacios.asm: palacios