2016-01-29 22:33:10 +00:00
|
|
|
LIBS=../../libcrypto
|
|
|
|
SOURCE[../../libcrypto]=\
|
|
|
|
{- $target{rc4_asm_src} -}
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-12 08:46:28 +00:00
|
|
|
GENERATE[rc4-586.s]=asm/rc4-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(LIB_CFLAGS) $(PROCESSOR)
|
2016-03-07 14:48:49 +00:00
|
|
|
DEPEND[rc4-586.s]=../perlasm/x86asm.pl
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-07 14:48:49 +00: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 02:25:40 +00:00
|
|
|
|
2016-03-07 14:48:49 +00:00
|
|
|
GENERATE[rc4-parisc.s]=asm/rc4-parisc.pl $(PERLASM_SCHEME)
|
2016-01-30 02:25:40 +00:00
|
|
|
|
2016-03-18 14:45:52 +00: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 14:48:49 +00:00
|
|
|
BEGINRAW[Makefile]
|
2016-03-13 20:54:49 +00:00
|
|
|
{- $builddir -}/rc4-ia64.s: {- $sourcedir -}/asm/rc4-ia64.pl
|
|
|
|
@(trap "rm $@.*" INT 0; \
|
2016-03-18 14:45:52 +00:00
|
|
|
$(PERL) $< $(CFLAGS) $(LIB_CFLAGS) $@.S; \
|
2016-03-13 20:54:49 +00: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 02:25:40 +00:00
|
|
|
|
|
|
|
# GNU make "catch all"
|
|
|
|
{- $builddir -}/rc4-%.s: {- $sourcedir -}/asm/rc4-%.pl
|
2016-02-13 18:15:52 +00:00
|
|
|
CC="$(CC)" $(PERL) $< $(PERLASM_SCHEME) $@
|
2016-01-30 02:25:40 +00:00
|
|
|
ENDRAW[Makefile]
|