X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=box%2FMakefile;h=b44fe3a4f034d8213bf9ef137ad9ef62da6b6872;hb=bf755d50d117057d2be1197341e1d91bc5f1a808;hp=bb9e2d6cd8287e5db690a70ee6b8c2ddb26e296d;hpb=90f66e4da825cc0a803cbad2c9bffa9354660fdc;p=moe.git diff --git a/box/Makefile b/box/Makefile index bb9e2d6..b44fe3a 100644 --- a/box/Makefile +++ b/box/Makefile @@ -1,14 +1,19 @@ # Makefile for MO-Eval sandbox -# (c) 2008 Martin Mares +# (c) 2008--2010 Martin Mares DIRS+=box PROGS+=$(o)/box/box +BOX_CFLAGS=-m64 -DCONFIG_BOX_KERNEL_AMD64 #-DCONFIG_BOX_USER_AMD64 + $(o)/box/box: $(o)/box/box.o $(o)/box/box.o: $(o)/box/syscall-table.h +$(o)/box/box: LDFLAGS+=$(BOX_CFLAGS) +$(o)/box/box.o: CFLAGS+=$(BOX_CFLAGS) + $(o)/box/syscall-table.h: $(s)/box/mk-syscall-table - sh $^ >$@ + sh $^ >$@ $(BOX_CFLAGS) box-tests: $(addprefix $(o)/box/test-sys,32-int80 64-int80 32-syscall 64-syscall 32-sysenter 64-sysenter)