]> rtime.felk.cvut.cz Git - jailhouse.git/blobdiff - inmates/Makefile
jailhouse: inmates: bench: Add -R option -- repeats count.
[jailhouse.git] / inmates / Makefile
index 012627a33f4174764ec5b2981a9eefbe5fa67044..502425bbeb31ecdf91e4077226841624245cc750 100644 (file)
@@ -22,15 +22,15 @@ KBUILD_AFLAGS += $(INCLUDES)
 KBUILD_CFLAGS := -g -Os -Wall -Wstrict-prototypes -Wtype-limits \
                 -Wmissing-declarations -Wmissing-prototypes \
                 -fno-strict-aliasing -fomit-frame-pointer -fno-pic \
-                -fno-common -fno-stack-protector $(INCLUDES)
+                -fno-common -fno-stack-protector -DJAILHOUSE $(INCLUDES)
 ifneq ($(wildcard $(src)/../hypervisor/include/jailhouse/config.h),)
 KBUILD_CFLAGS += -include $(src)/../hypervisor/include/jailhouse/config.h
 endif
 
 OBJCOPYFLAGS := -O binary
-LDFLAGS += -T
+LDFLAGS += --gc-sections -T
 
-subdir-y := lib/$(SRCARCH) demos/$(SRCARCH)
+subdir-y := lib/$(SRCARCH) demos/$(SRCARCH) tools/$(SRCARCH)
 
-# demos depend on the library
-$(obj)/demos/$(SRCARCH): $(obj)/lib/$(SRCARCH)
+# demos and tools depend on the library
+$(obj)/demos/$(SRCARCH) $(obj)/tools/$(SRCARCH): $(obj)/lib/$(SRCARCH)