]> mj.ucw.cz Git - eval.git/blobdiff - box/Makefile
MO-P: Let KDE template contain a confirmed server certificate
[eval.git] / box / Makefile
index 11f8931b93bcf04c695926538398774921f8b503..98e5dcef8f76f966903670ef353dd471a49713a3 100644 (file)
@@ -1,10 +1,13 @@
-# Makefile for MO-Eval sandbox
+# Makefile for Moe sandbox
 # (c) 2008--2010 Martin Mares <mj@ucw.cz>
 
 DIRS+=box
 PROGS+=$(o)/box/box
 
-BOX_CFLAGS=-m64 -DCONFIG_BOX_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)