fix formatting
[openadk.git] / mk / perl.mk
blobc28a4aef3c91d33cade609fb2c4d7aca7c811490
1 PERL_VERSION=5.24.1
2 PERL_ARCHNAME:=$(ADK_TARGET_CPU_ARCH)-linux
3 PERL_SITEDIR:=/usr/lib/perl5/site_perl/$(PERL_VERSION)
4 PERL_INCDIR:=/usr/lib/perl5/$(PERL_VERSION)/$(PERL_ARCHNAME)/CORE
5 PERL_ENV:= AR="$(TARGET_AR)" \
6 FULL_AR="$(TARGET_AR)" \
7 CC="$(TARGET_CC)" \
8 CCFLAGS="$(TARGET_CFLAGS)" \
9 OPTIMIZE=" " \
10 LD="$(TARGET_CC)" \
11 LDDLFLAGS="-shared $(TARGET_LDFLAGS)" \
12 LDFLAGS="$(TARGET_LDFLAGS)" \
13 PERL_INC=$(STAGING_TARGET_DIR)/$(PERL_INCDIR) \
14 DESTDIR=$(WRKINST) \
15 INSTALLDIRS=vendor \
16 INSTALLVENDORLIB=$(PERL_SITEDIR) \
17 INSTALLVENDORARCH=$(PERL_SITEDIR)/$(PERL_ARCHNAME) \
18 INSTALLVENDORBIN=/usr/bin \
19 INSTALLVENDORSCRIPT=/usr/bin
20 HOST_PERL_ENV:= CC="$(CC_FOR_BUILD)" \
21 CCFLAGS="$(CFLAGS_FOR_BUILD)" \
22 OPTIMIZE=" " \
23 LD="$(CC_FOR_BUILD)" \
24 LDDLFLAGS="-shared $(LDFLAGS_FOR_BUILD)" \
25 LDFLAGS="$(LDFLAGS_FOR_BUILD)" \
26 DESTDIR=$(WRKINST) \
27 INSTALLDIRS=vendor \
28 INSTALLVENDORLIB=$(PERL_SITEDIR) \
29 INSTALLVENDORARCH=$(PERL_SITEDIR)/$(PERL_ARCHNAME) \
30 INSTALLVENDORBIN=/usr/bin \
31 INSTALLVENDORSCRIPT=/usr/bin