2016-01-30 14:14:58 +08:00
|
|
|
{- use File::Spec::Functions qw/catdir catfile/; -}
|
2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../libcrypto
|
|
|
|
SOURCE[../libcrypto]=\
|
|
|
|
cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c cpt_err.c \
|
2016-02-01 02:08:23 +08:00
|
|
|
ebcdic.c uid.c o_time.c o_str.c o_dir.c thr_id.c lock.c \
|
2015-10-26 00:43:55 +08:00
|
|
|
threads_pthread.c threads_win.c threads_none.c \
|
2016-03-02 16:34:26 +08:00
|
|
|
o_init.c o_fips.c mem_sec.c init.c {- $target{cpuid_asm_src} -} \
|
|
|
|
{- $target{uplink_aux_src} -}
|
2016-01-30 06:33:10 +08:00
|
|
|
EXTRA= ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
|
|
|
|
x86cpuid.pl x86_64cpuid.pl ia64cpuid.S \
|
|
|
|
ppccpuid.pl pariscid.pl alphacpuid.pl arm64cpuid.pl armv4cpuid.pl
|
|
|
|
|
|
|
|
DEPEND[cversion.o]=buildinf.h
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-01-30 14:14:58 +08:00
|
|
|
BEGINRAW[descrip.mms]
|
2016-02-20 07:21:04 +08:00
|
|
|
[.crypto]buildinf.h : configdata.pm
|
2016-01-30 14:14:58 +08:00
|
|
|
$(PERL) {- catfile(catdir($sourcedir, "[-]"), "util", "mkbuildinf.pl") -} "$(CC) $(CFLAGS)" "$(PLATFORM)" > [.crypto]buildinf.h
|
|
|
|
ENDRAW[descrip.mms]
|
|
|
|
|
2016-01-30 10:25:40 +08:00
|
|
|
BEGINRAW[Makefile]
|
2016-02-20 07:21:04 +08:00
|
|
|
crypto/buildinf.h : configdata.pm
|
2016-02-11 02:09:05 +08:00
|
|
|
$(PERL) $(SRCDIR)/util/mkbuildinf.pl "$(CC) $(CFLAGS_Q)" "$(PLATFORM)" > crypto/buildinf.h
|
2016-01-30 10:25:40 +08:00
|
|
|
|
|
|
|
##### APPLINK, UPLINK and CPUID assembler implementations
|
|
|
|
|
|
|
|
{- $builddir -}/uplink-x86.s: $(SRCDIR)/ms/uplink-x86.pl
|
2016-02-18 07:27:04 +08:00
|
|
|
CC="$(CC)" $(PERL) $(SRCDIR)/ms/uplink-x86.pl $(PERLASM_SCHEME) > $@
|
2016-01-30 10:25:40 +08:00
|
|
|
|
|
|
|
{- $builddir -}/x86cpuid.s: {- $sourcedir -}/x86cpuid.pl {- $sourcedir -}/perlasm/x86asm.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/x86cpuid.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
|
2016-01-30 10:25:40 +08:00
|
|
|
|
|
|
|
{- $builddir -}/x86_64cpuid.s: {- $sourcedir -}/x86_64cpuid.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/x86_64cpuid.pl $(PERLASM_SCHEME) > $@
|
2016-01-30 10:25:40 +08:00
|
|
|
{- $builddir -}/ia64cpuid.s: {- $sourcedir -}/ia64cpuid.S
|
|
|
|
$(CC) $(CFLAGS) -E {- $sourcedir -}/ia64cpuid.S > $@
|
|
|
|
{- $builddir -}/ppccpuid.s: {- $sourcedir -}/ppccpuid.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/ppccpuid.pl $(PERLASM_SCHEME) $@
|
2016-01-30 10:25:40 +08:00
|
|
|
{- $builddir -}/pariscid.s: {- $sourcedir -}/pariscid.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/pariscid.pl $(PERLASM_SCHEME) $@
|
2016-01-30 10:25:40 +08:00
|
|
|
{- $builddir -}/alphacpuid.s: {- $sourcedir -}/alphacpuid.pl
|
|
|
|
(preproc=$$$$.$@.S; trap "rm $$preproc" INT; \
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/alphacpuid.pl > $$preproc && \
|
2016-01-30 10:25:40 +08:00
|
|
|
$(CC) -E -P $$preproc > $@ && rm $$preproc)
|
|
|
|
{- $builddir -}/arm64cpuid.S: {- $sourcedir -}/arm64cpuid.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/arm64cpuid.pl $(PERLASM_SCHEME) > $@
|
2016-01-30 10:25:40 +08:00
|
|
|
{- $builddir -}/armv4cpuid.S: {- $sourcedir -}/armv4cpuid.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) {- $sourcedir -}/armv4cpuid.pl $(PERLASM_SCHEME) > $@
|
2016-01-30 10:25:40 +08:00
|
|
|
ENDRAW[Makefile]
|