Browse Source

[LibOS,Pal] Consolidate `export DEBUG` in Makefile.configs

Isaku Yamahata 4 years ago
parent
commit
35dd8c9423

+ 0 - 2
LibOS/Makefile

@@ -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))

+ 0 - 1
LibOS/shim/src/Makefile

@@ -66,7 +66,6 @@ ASFLAGS += -DDEBUG
 else
 CFLAGS += -O2
 endif
-export DEBUG
 
 ifeq ($(PROFILING), 1)
 CFLAGS += -DPROFILE

+ 0 - 1
Pal/regression/Makefile

@@ -62,7 +62,6 @@ sgx-tokens: $(call expand_target_to_token,$(target))
 ifeq ($(DEBUG),1)
 CC += -g
 endif
-export DEBUG
 
 ifeq ($(WERROR),1)
 CFLAGS += -Werror

+ 0 - 1
Pal/src/Makefile

@@ -52,7 +52,6 @@ ifeq ($(DEBUG),1)
 CC += -gdwarf-2 -g3
 CFLAGS += -DDEBUG
 endif
-export DEBUG
 
 # Install Targets (all in RUNTIME_DIR):
 #       pal-{Host Name}:       loader for PAL (as an executable)

+ 0 - 1
Pal/src/host/Linux-SGX/Makefile

@@ -30,7 +30,6 @@ ifeq ($(DEBUG),1)
 CC += -gdwarf-2 -g3
 CFLAGS += -DDEBUG
 ASFLAGS += -DDEBUG
-export DEBUG
 endif
 
 ../../host_endian.h: host_endian.h

+ 0 - 1
Pal/src/host/Linux/Makefile

@@ -25,7 +25,6 @@ all: $(host_files)
 ifeq ($(DEBUG),1)
 CC += -gdwarf-2 -g3
 CFLAGS += -DDEBUG
-export DEBUG
 endif
 
 libpal-Linux.a: $(addsuffix .o,$(objs)) $(graphene_lib)

+ 0 - 1
Pal/src/host/Skeleton/Makefile

@@ -19,7 +19,6 @@ all: $(host_files)
 ifeq ($(DEBUG),1)
 CC += -gdwarf-2 -g3
 CFLAGS += -DDEBUG
-export DEBUG
 endif
 
 ../../host_endian.h: host_endian.h

+ 0 - 1
Pal/test/Makefile

@@ -28,7 +28,6 @@ sgx-tokens: $(call expand_target_to_token,$(target))
 ifeq ($(DEBUG),1)
 CC += -g
 endif
-export DEBUG
 
 ifeq ($(WERROR),1)
 CFLAGS += -Werror

+ 0 - 1
Scripts/Makefile.Test

@@ -39,7 +39,6 @@ ifeq ($(DEBUG),1)
 CC += -g
 CXX += -g
 endif
-export DEBUG
 
 ifeq ($(WERROR),1)
 CFLAGS += -Werror

+ 4 - 0
Scripts/Makefile.configs

@@ -17,7 +17,11 @@ ifeq ($(origin CXX),default)
 CXX = g++
 endif
 OBJCOPY ?= objcopy
+
 SYS ?= $(shell $(CC) -dumpmachine)
 export SYS
 
+DEBUG ?=
+export DEBUG
+
 MAKEFILE_CONFIGS_INCLUDED = y