and added files
[bcm963xx.git] / userapps / opensource / openssl / crypto / ec / Makefile
1 #
2 # crypto/ec/Makefile
3 #
4
5 DIR=    ec
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 INSTALL_PREFIX=
11 OPENSSLDIR=     /usr/local/ssl
12 INSTALLTOP=/usr/local/ssl
13 MAKEDEPPROG=    makedepend
14 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
15 MAKEFILE=       Makefile
16 AR=             ar r
17
18 CFLAGS= $(INCLUDES) $(CFLAG)
19
20 GENERAL=Makefile
21 TEST=ectest.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_recp.c ecp_nist.c ec_cvt.c ec_mult.c \
26         ec_err.c
27
28 LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_recp.o ecp_nist.o ec_cvt.o ec_mult.o \
29         ec_err.o
30
31 SRC= $(LIBSRC)
32
33 EXHEADER= ec.h
34 HEADER= ec_lcl.h $(EXHEADER)
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 all:    lib
42
43 lib:    $(LIBOBJ)
44         $(AR) $(LIB) $(LIBOBJ)
45         $(RANLIB) $(LIB) || echo Never mind.
46         @touch lib
47
48 files:
49         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50
51 links:
52         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55
56 install:
57         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
58         do  \
59         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
60         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
61         done;
62
63 tags:
64         ctags $(SRC)
65
66 tests:
67
68 lint:
69         lint -DLINT $(INCLUDES) $(SRC)>fluff
70
71 depend:
72         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
73
74 dclean:
75         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
76         mv -f Makefile.new $(MAKEFILE)
77
78 clean:
79         rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
80
81 # DO NOT DELETE THIS LINE -- make depend depends on it.
82
83 ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h
84 ec_cvt.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h
85 ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h
86 ec_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
87 ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
88 ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h
89 ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
90 ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
91 ec_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
92 ec_err.o: ec_err.c
93 ec_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
94 ec_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
95 ec_lib.o: ../../include/openssl/ec.h ../../include/openssl/err.h
96 ec_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
97 ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
98 ec_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
99 ec_lib.o: ec_lcl.h ec_lib.c
100 ec_mult.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
101 ec_mult.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
102 ec_mult.o: ../../include/openssl/ec.h ../../include/openssl/err.h
103 ec_mult.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
104 ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
105 ec_mult.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
106 ec_mult.o: ec_lcl.h ec_mult.c
107 ecp_mont.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
108 ecp_mont.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
109 ecp_mont.o: ../../include/openssl/ec.h ../../include/openssl/err.h
110 ecp_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
111 ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
112 ecp_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
113 ecp_mont.o: ec_lcl.h ecp_mont.c
114 ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h
115 ecp_nist.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h
116 ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c
117 ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h
118 ecp_recp.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h
119 ecp_recp.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_recp.c
120 ecp_smpl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h
121 ecp_smpl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
122 ecp_smpl.o: ../../include/openssl/ec.h ../../include/openssl/err.h
123 ecp_smpl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
124 ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
125 ecp_smpl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
126 ecp_smpl.o: ec_lcl.h ecp_smpl.c