Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

[Makefile] Use central build config #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apache/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

HOST ?= 127.0.0.1
PORT ?= 8001

Expand Down
2 changes: 2 additions & 0 deletions bash/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

BASH_DIR = bash-4.1

manifests = $(addsuffix .manifest,bash ls cp rm cat date)
Expand Down
2 changes: 2 additions & 0 deletions busybox/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

exec_target = busybox.manifest busybox_nofork.manifest
target = busybox busybox_gdb busybox_nofork busybox_nofork_gdb

Expand Down
2 changes: 2 additions & 0 deletions curl/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

manifests = curl.manifest

target =
Expand Down
2 changes: 2 additions & 0 deletions gcc/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

test_files = test_files

exec_target = $(addsuffix .manifest,gcc as ld cc1 collect2)
Expand Down
2 changes: 2 additions & 0 deletions lighttpd/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

manifests = lighttpd.manifest lighttpd-angel.manifest
SRCDIR = lighttpd-1.4.30
HOST = 127.0.0.1
Expand Down
2 changes: 2 additions & 0 deletions lmbench/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

LMBENCHDIR = lmbench-2.5
LINUXDIR = $(LMBENCHDIR)/bin/linux/

Expand Down
2 changes: 2 additions & 0 deletions ltp/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

SRCDIR = src
BUILDDIR = opt/ltp
TESTCASEDIR = $(BUILDDIR)/testcases/bin
Expand Down
2 changes: 1 addition & 1 deletion ltp/edit_sys_tests.awk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BEGIN{
blocked[test]
}

if (SGX) {
if (ENVIRON["SGX"]) {
pal_str = "./pal_loader SGX"
} else {
pal_str = "./pal_loader"
Expand Down
2 changes: 1 addition & 1 deletion ltp/syscalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

cd `dirname $0`
export LTPROOT=$PWD"/opt/ltp"
awk -v SGX=$SGX_RUN -f edit_sys_tests.awk $LTPROOT/runtest/syscalls > syscalls.graphene
awk -f edit_sys_tests.awk $LTPROOT/runtest/syscalls > syscalls.graphene
cd $LTPROOT/../..
python fetch.py
2 changes: 2 additions & 0 deletions memcached/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# Relative path to Graphene root
GRAPHENEDIR = ../../../../..

include $(GRAPHENEDIR)/build-config.mk

SRCDIR = src
COMMIT = master

Expand Down
2 changes: 2 additions & 0 deletions nginx/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

manifests = nginx.manifest
SRCDIR = nginx-1.10.1
HOST = $(firstword $(shell ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' -m 1 | cut -d: -f2))
Expand Down
2 changes: 2 additions & 0 deletions python/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

PYTHON_SRC = Python-2.7.9
PYTHON_INSTALL = $(PYTHON_SRC)/build

Expand Down
2 changes: 2 additions & 0 deletions r/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include ../../../../../build-config.mk

R_SRC = R-3.1.2
R_INSTALL = $(R_SRC)/build

Expand Down