38 lines
890 B
Makefile
38 lines
890 B
Makefile
# Makefile - hhl - /usr/src/world/openssl
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
distname = openssl
|
|
distext = gz
|
|
include world.mk
|
|
|
|
config_cmd = cd $(objdir) && $(srcdir)/Configure $(config_opts)
|
|
export CFLAGS = --sysroot=$(DESTDIR)
|
|
|
|
ifeq (aarch64, $(arch))
|
|
config_opts += linux-aarch64
|
|
endif
|
|
ifeq (riscv64, $(arch))
|
|
config_opts += linux64-riscv64
|
|
endif
|
|
ifeq (x86_64, $(arch))
|
|
config_opts += linux-x86_64
|
|
endif
|
|
ifeq ($(filter i486 i586 i686, $(arch)), $(arch))
|
|
config_opts += linux-x86
|
|
endif
|
|
ifeq (i486, $(arch))
|
|
export CFLAGS = -latomic
|
|
endif
|
|
ifeq (armv7l, $(arch))
|
|
config_opts += linux-generic32
|
|
export CFLAGS = -latomic
|
|
endif
|
|
|
|
config_opts += --cross-compile-prefix=$(tgt)-
|
|
config_opts += --openssldir=/etc/ssl
|
|
config_opts += --libdir=/usr/lib
|
|
config_opts += shared
|
|
consif_opts += zlib-dynamic
|
|
|
|
include targets.mk
|