12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- include ../../buildenv.mk
- CRYPTO_PATH = $(LINUX_EXTERNAL_DIR)/crypto_px
- CXXFLAGS += -Werror -fno-rtti -fno-exceptions -fPIC
- CPPFLAGS := -isystem $(CRYPTO_PATH)/include \
- -I$(COMMON_DIR)/inc/internal/
- IPPFLAGS := -Wl,--start-group \
- $(CRYPTO_PATH)/libcrypto_px.a \
- -Wl,--end-group
- OBJS := sample_libcrypto.o
- LIBSAMPLECRYPTO := libsample_libcrypto.so
- $(BUILD_DIR):
- @$(MKDIR) $@
- .PHONY: all
- all: $(LIBSAMPLECRYPTO) | $(BUILD_DIR)
- @$(CP) $< $|
- libcrypto_px:
- $(MAKE) -C $(CRYPTO_PATH)
- $(LIBSAMPLECRYPTO): $(OBJS) libcrypto_px
- $(CXX) $(CXXFLAGS) -shared -Bdynamic -Wl,-soname,$(LIBSAMPLECRYPTO) $< -o $@ $(IPPFLAGS) -Wl,--version-script,sample_libcrypto.lds
- $(OBJS): %.o: %.cpp
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
- .PHONY: clean
- clean:
- $(MAKE) -C $(CRYPTO_PATH) clean
- @$(RM) $(OBJS) $(LIBSAMPLECRYPTO) $(BUILD_DIR)/$(LIBSAMPLECRYPTO)
- .PHONY: rebuild
- rebuild: clean all
|