Makefile (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) | Makefile (cc937dad85aea4ab9e4f9827d7ea55932c86906b) |
---|---|
1top_srcdir = ../../../.. 2 3include ../lib.mk 4 5.PHONY: all clean 6 7CAN_BUILD_X86_64 := $(shell ../x86/check_cc.sh "$(CC)" \ 8 ../x86/trivial_64bit_program.c) 9 10ifndef OBJCOPY 11OBJCOPY := $(CROSS_COMPILE)objcopy 12endif 13 14INCLUDES := -I$(top_srcdir)/tools/include | 1top_srcdir = ../../../.. 2 3include ../lib.mk 4 5.PHONY: all clean 6 7CAN_BUILD_X86_64 := $(shell ../x86/check_cc.sh "$(CC)" \ 8 ../x86/trivial_64bit_program.c) 9 10ifndef OBJCOPY 11OBJCOPY := $(CROSS_COMPILE)objcopy 12endif 13 14INCLUDES := -I$(top_srcdir)/tools/include |
15HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC | 15HOST_CFLAGS := -Wall -Werror -g $(INCLUDES) -fPIC $(CFLAGS) |
16HOST_LDFLAGS := -z noexecstack -lcrypto 17ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ 18 -fno-stack-protector -mrdrnd $(INCLUDES) 19ENCL_LDFLAGS := -Wl,-T,test_encl.lds,--build-id=none 20 21ifeq ($(CAN_BUILD_X86_64), 1) 22TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx 23TEST_FILES := $(OUTPUT)/test_encl.elf --- 37 unchanged lines hidden --- | 16HOST_LDFLAGS := -z noexecstack -lcrypto 17ENCL_CFLAGS += -Wall -Werror -static-pie -nostdlib -ffreestanding -fPIE \ 18 -fno-stack-protector -mrdrnd $(INCLUDES) 19ENCL_LDFLAGS := -Wl,-T,test_encl.lds,--build-id=none 20 21ifeq ($(CAN_BUILD_X86_64), 1) 22TEST_CUSTOM_PROGS := $(OUTPUT)/test_sgx 23TEST_FILES := $(OUTPUT)/test_encl.elf --- 37 unchanged lines hidden --- |