2016-01-30 06:33:10 +08:00
|
|
|
LIBS=../../libcrypto
|
|
|
|
SOURCE[../../libcrypto]=\
|
|
|
|
{- $target{rc4_asm_src} -}
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-03-12 16:46:28 +08:00
|
|
|
GENERATE[rc4-586.s]=asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
2016-03-07 22:48:49 +08:00
|
|
|
DEPEND[rc4-586.s]=../perlasm/x86asm.pl
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-03-07 22:48:49 +08:00
|
|
|
GENERATE[rc4-x86_64.s]=asm/rc4-x86_64.pl $(PERLASM_SCHEME)
|
|
|
|
GENERATE[rc4-md5-x86_64.s]=asm/rc4-md5-x86_64.pl $(PERLASM_SCHEME)
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-03-07 22:48:49 +08:00
|
|
|
GENERATE[rc4-parisc.s]=asm/rc4-parisc.pl $(PERLASM_SCHEME)
|
2016-01-30 10:25:40 +08:00
|
|
|
|
2016-03-18 22:45:52 +08:00
|
|
|
BEGINRAW[makefile(windows)]
|
|
|
|
{- $builddir -}\rc4-ia64.asm: {- $sourcedir -}\asm\rc4-ia64.pl
|
|
|
|
$(PERL) {- $sourcedir -}\asm\rc4-ia64.pl $@.S
|
|
|
|
$(CC) -DSZ=4 -EP $@.S > $@.i && move /Y $@.i $@
|
|
|
|
del /Q $@.S
|
|
|
|
ENDRAW[makefile(windows)]
|
|
|
|
|
2016-03-07 22:48:49 +08:00
|
|
|
BEGINRAW[Makefile]
|
2016-03-14 04:54:49 +08:00
|
|
|
{- $builddir -}/rc4-ia64.s: {- $sourcedir -}/asm/rc4-ia64.pl
|
|
|
|
@(trap "rm $@.*" INT 0; \
|
2016-03-18 22:45:52 +08:00
|
|
|
$(PERL) $< $(CFLAGS) $(LIB_CFLAGS) $@.S; \
|
2016-03-14 04:54:49 +08:00
|
|
|
case `awk '/^#define RC4_INT/{print$$NF}' $(BLDDIR)/include/openssl/opensslconf.h` in \
|
|
|
|
int) set -x; $(CC) $(CFLAGS) $(LIB_CFLAGS) -DSZ=4 -E $@.S > $@.i && mv -f $@.i $@;; \
|
|
|
|
char) set -x; $(CC) $(CFLAGS) $(LIB_CFLAGS) -DSZ=1 -E $@.S > $@.i && mv -f $@.i $@;; \
|
|
|
|
*) exit 1 ;; \
|
|
|
|
esac )
|
2016-01-30 10:25:40 +08:00
|
|
|
|
|
|
|
# GNU make "catch all"
|
|
|
|
{- $builddir -}/rc4-%.s: {- $sourcedir -}/asm/rc4-%.pl
|
2016-02-14 02:15:52 +08:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-01-30 10:25:40 +08:00
|
|
|
ENDRAW[Makefile]
|