mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
libssl: use platform specific mk files
Instead of checking the target platform in the mk file use the common pattern of providing a mk file for each platform. Fixes #1236.
This commit is contained in:
parent
225dcf897b
commit
5322714183
4
repos/libports/lib/mk/arm/libssl.mk
Normal file
4
repos/libports/lib/mk/arm/libssl.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
include $(REP_DIR)/lib/mk/libssl.inc
|
||||||
|
|
||||||
|
INC_DIR += $(REP_DIR)/src/lib/openssl/arm
|
||||||
|
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/arm
|
@ -15,17 +15,6 @@ SRC_C = s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \
|
|||||||
|
|
||||||
INC_DIR += $(LIBSSL_PORT_DIR)/include/openssl
|
INC_DIR += $(LIBSSL_PORT_DIR)/include/openssl
|
||||||
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/crypto
|
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/crypto
|
||||||
|
|
||||||
ifeq ($(filter-out $(SPECS),x86_32),)
|
|
||||||
TARGET_CPUARCH=x86_32
|
|
||||||
else ifeq ($(filter-out $(SPECS),x86_64),)
|
|
||||||
TARGET_CPUARCH=x86_64
|
|
||||||
else ifeq ($(filter-out $(SPECS),arm),)
|
|
||||||
TARGET_CPUARCH=arm
|
|
||||||
endif
|
|
||||||
|
|
||||||
INC_DIR += $(REP_DIR)/src/lib/openssl/$(TARGET_CPUARCH)/
|
|
||||||
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/$(TARGET_CPUARCH)/
|
|
||||||
INC_DIR += $(LIBSSL_PORT_DIR)/include
|
INC_DIR += $(LIBSSL_PORT_DIR)/include
|
||||||
|
|
||||||
vpath %.c $(LIBSSL_PORT_DIR)/src/lib/openssl/ssl
|
vpath %.c $(LIBSSL_PORT_DIR)/src/lib/openssl/ssl
|
4
repos/libports/lib/mk/x86_32/libssl.mk
Normal file
4
repos/libports/lib/mk/x86_32/libssl.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
include $(REP_DIR)/lib/mk/libssl.inc
|
||||||
|
|
||||||
|
INC_DIR += $(REP_DIR)/src/lib/openssl/x86_32
|
||||||
|
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/x86_32
|
4
repos/libports/lib/mk/x86_64/libssl.mk
Normal file
4
repos/libports/lib/mk/x86_64/libssl.mk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
include $(REP_DIR)/lib/mk/libssl.inc
|
||||||
|
|
||||||
|
INC_DIR += $(REP_DIR)/src/lib/openssl/x86_64
|
||||||
|
INC_DIR += $(LIBSSL_PORT_DIR)/src/lib/openssl/x86_64
|
Loading…
x
Reference in New Issue
Block a user