add a makefile under project root directory

it can be used as following:
  make ==> to make hypervisor & devicemodel & tools
also modify tools makefile to support out-dir setting.

Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Jack Ren <jack.ren@intel.com>
This commit is contained in:
Minggui Cao
2018-05-15 09:09:20 +08:00
committed by Jack Ren
parent c597a0fc2f
commit fb19b296ea
5 changed files with 52 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
OUT_DIR ?= .
all:
gcc -g acrnlog.c -o acrnlog -lpthread
gcc -g acrnlog.c -o $(OUT_DIR)/acrnlog -lpthread
clean:
rm acrnlog