X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=box%2FMakefile;h=98e5dcef8f76f966903670ef353dd471a49713a3;hb=1636b318830d64ec5c393d1a2d043f595f0342c4;hp=b44fe3a4f034d8213bf9ef137ad9ef62da6b6872;hpb=cfcf95ad52c253fbd104419ae202a2fc85eb32e2;p=eval.git diff --git a/box/Makefile b/box/Makefile index b44fe3a..98e5dce 100644 --- a/box/Makefile +++ b/box/Makefile @@ -1,10 +1,13 @@ -# Makefile for MO-Eval sandbox +# Makefile for Moe sandbox # (c) 2008--2010 Martin Mares DIRS+=box PROGS+=$(o)/box/box -BOX_CFLAGS=-m64 -DCONFIG_BOX_KERNEL_AMD64 #-DCONFIG_BOX_USER_AMD64 +BOX_CFLAGS= +ifdef CONFIG_BOX_KERNEL_AMD64 +BOX_CFLAGS += -m64 +endif $(o)/box/box: $(o)/box/box.o $(o)/box/box.o: $(o)/box/syscall-table.h @@ -13,7 +16,8 @@ $(o)/box/box: LDFLAGS+=$(BOX_CFLAGS) $(o)/box/box.o: CFLAGS+=$(BOX_CFLAGS) $(o)/box/syscall-table.h: $(s)/box/mk-syscall-table - sh $^ >$@ $(BOX_CFLAGS) + $(M) GEN $@ + $(Q)sh $^ >$@ $(CFLAGS) $(BOX_CFLAGS) box-tests: $(addprefix $(o)/box/test-sys,32-int80 64-int80 32-syscall 64-syscall 32-sysenter 64-sysenter)