Makefile 3.1 KB
Newer Older
1 2 3 4 5 6 7
#
# SSLeay/crypto/rc4/Makefile
#

DIR=	rc4
TOP=	../..
CC=	cc
8
CPP=    $(CC) -E
9 10
INCLUDES=
CFLAG=-g
11 12
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
13
INSTALLTOP=/usr/local/ssl
B
Ben Laurie 已提交
14
MAKE=		make
15 16
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
B
Ben Laurie 已提交
17
MAKEFILE=	Makefile
18 19
AR=		ar r

20 21
RC4_ENC=rc4_enc.o

22
CFLAGS= $(INCLUDES) $(CFLAG)
23
ASFLAGS= $(INCLUDES) $(ASFLAG)
24
AFLAGS= $(ASFLAGS)
25 26 27 28 29 30

GENERAL=Makefile
TEST=rc4test.c
APPS=

LIB=$(TOP)/libcrypto.a
31 32
LIBSRC=rc4_skey.c rc4_enc.c
LIBOBJ=rc4_skey.o $(RC4_ENC)
33 34 35 36

SRC= $(LIBSRC)

EXHEADER= rc4.h
37
HEADER=	$(EXHEADER) rc4_locl.h
38 39 40 41 42 43 44 45 46 47

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

all:	lib

lib:	$(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
48
	$(RANLIB) $(LIB) || echo Never mind.
49 50
	@touch lib

51
# ELF
52
rx86-elf.s: asm/rc4-586.pl ../perlasm/x86asm.pl
53 54
	(cd asm; $(PERL) rc4-586.pl elf $(CFLAGS) > ../$@)
# COFF
55
rx86-cof.s: asm/rc4-586.pl ../perlasm/x86asm.pl
56
	(cd asm; $(PERL) rc4-586.pl coff $(CFLAGS) > ../$@)
57
# a.out
58 59
rx86-out.s: asm/rc4-586.pl ../perlasm/x86asm.pl
	(cd asm; $(PERL) rc4-586.pl a.out $(CFLAGS) > ../$@)
60

61
rc4-amd64.s: asm/rc4-amd64.pl;	$(PERL) asm/rc4-amd64.pl $@
A
Andy Polyakov 已提交
62

63
rc4-ia64.s: asm/rc4-ia64.S
A
Andy Polyakov 已提交
64 65
	$(CC) $(CFLAGS) -E asm/rc4-ia64.S > $@

66
files:
B
Ben Laurie 已提交
67
	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
68 69

links:
70 71 72
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
73 74

install:
75
	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
76
	do  \
77 78
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
79 80 81 82 83 84 85 86 87 88 89
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
90
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
91 92

dclean:
93
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
94 95 96
	mv -f Makefile.new $(MAKEFILE)

clean:
97
	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
98 99

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
100

101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
rc4_enc.o: ../../e_os.h ../../include/openssl/bio.h
rc4_enc.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
rc4_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
rc4_enc.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
rc4_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
rc4_enc.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
rc4_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
rc4_enc.o: ../cryptlib.h rc4_enc.c rc4_locl.h
rc4_skey.o: ../../e_os.h ../../include/openssl/bio.h
rc4_skey.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
rc4_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
rc4_skey.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
rc4_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
rc4_skey.o: ../../include/openssl/rc4.h ../../include/openssl/safestack.h
rc4_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
rc4_skey.o: ../cryptlib.h rc4_locl.h rc4_skey.c