1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- include ../../../buildenv.mk
- SIM_DIR := $(CUR_DIR)/..
- ifndef DEBUG
- CXXFLAGS += -DDISABLE_TRACE
- CFLAGS += -DDISABLE_TRACE
- endif
- CPPFLAGS += $(ADDED_INC)
- CPPFLAGS += -I$(COMMON_DIR)/inc/ \
- -I$(COMMON_DIR)/inc/internal \
- -I$(SIM_DIR)/assembly/ \
- -I$(SIM_DIR)/assembly/linux \
- -I$(LINUX_PSW_DIR)/urts \
- -I$(LINUX_PSW_DIR)/urts/linux
- CXXFLAGS += -Werror -fPIC
- OBJ1 := linux/set_tls.o \
- linux/restore_tls.o
- LIBSESIMU_U := libsesimu_u.a
- .PHONY:all
- all: $(LIBSESIMU_U)
- enclave_mngr.o: enclave_mngr.cpp
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
- u_instructions.o: u_instructions.cpp
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -O0 -Wno-error=cpp -c $< -o $@
- $(LIBSESIMU_U): u_instructions.o enclave_mngr.o $(OBJ1)
- $(AR) rcs $@ $^
- $(OBJ1):
- $(MAKE) -C linux
- .PHONY: clean
- clean:
- $(MAKE) -C linux clean
- @$(RM) *.o *.a *.so
|