123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- include ../../../buildenv.mk
- CXXFLAGS += $(ENCLAVE_CXXFLAGS) -Werror -fno-rtti -fno-exceptions
- CPPLAGS += -I$(COMMON_DIR)/inc/ \
- -I$(COMMON_DIR)/inc/internal/ \
- -I$(COMMON_DIR)/inc/tlibc \
- -I$(LINUX_SDK_DIR)/selib
- SRC := $(wildcard ../*.cpp)
- OBJS := $(sort $(SRC:.cpp=.o))
- LIBSELIB := libselib.a
- .PHONY: all
- all: $(LIBSELIB)
- $(LIBSELIB): $(OBJS)
- $(AR) rcsD $@ $^
- $(OBJS): %.o:%.cpp
- $(CXX) -c $(CXXFLAGS) $(CPPLAGS) $< -o $@
- .PHONY: clean
- clean:
- @$(RM) $(OBJS) $(LIBSELIB)
- .PHONY: rebuild
- rebuild:
- $(MAKE) clean
- $(MAKE) all
|