@@ -2,8 +2,6 @@ include ../Scripts/Makefile.configs
include ../Scripts/Makefile.rules
include ../Pal/src/Makefile.Host
-export DEBUG
-
GLIBC_VERSION ?= 2.27
GLIBC_SRC = glibc-$(GLIBC_VERSION)
GLIBC_CHECKSUM = $(firstword $(shell grep $(GLIBC_SRC).tar.gz glibc-checksums))
@@ -66,7 +66,6 @@ ASFLAGS += -DDEBUG
else
CFLAGS += -O2
endif
ifeq ($(PROFILING), 1)
CFLAGS += -DPROFILE
@@ -62,7 +62,6 @@ sgx-tokens: $(call expand_target_to_token,$(target))
ifeq ($(DEBUG),1)
CC += -g
ifeq ($(WERROR),1)
CFLAGS += -Werror
@@ -52,7 +52,6 @@ ifeq ($(DEBUG),1)
CC += -gdwarf-2 -g3
CFLAGS += -DDEBUG
# Install Targets (all in RUNTIME_DIR):
# pal-{Host Name}: loader for PAL (as an executable)
@@ -30,7 +30,6 @@ ifeq ($(DEBUG),1)
ASFLAGS += -DDEBUG
../../host_endian.h: host_endian.h
@@ -25,7 +25,6 @@ all: $(host_files)
libpal-Linux.a: $(addsuffix .o,$(objs)) $(graphene_lib)
@@ -19,7 +19,6 @@ all: $(host_files)
@@ -28,7 +28,6 @@ sgx-tokens: $(call expand_target_to_token,$(target))
@@ -39,7 +39,6 @@ ifeq ($(DEBUG),1)
CXX += -g
@@ -17,7 +17,11 @@ ifeq ($(origin CXX),default)
CXX = g++
OBJCOPY ?= objcopy
+
SYS ?= $(shell $(CC) -dumpmachine)
export SYS
+DEBUG ?=
+export DEBUG
MAKEFILE_CONFIGS_INCLUDED = y