Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7e / crypto / cast / Makefile
blobf338e88ad56091468bae8a69a7ac18c986bc2a70
2 # SSLeay/crypto/cast/Makefile
5 DIR= cast
6 TOP= ../..
7 CC= cc
8 CPP= $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 INSTALL_PREFIX=
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKEDEPPROG= makedepend
15 MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE= Makefile
17 AR= ar r
19 CAST_ENC=c_enc.o
20 # or use
21 #CAST_ENC=asm/cx86-elf.o
22 #CAST_ENC=asm/cx86-out.o
23 #CAST_ENC=asm/cx86-sol.o
24 #CAST_ENC=asm/cx86bdsi.o
26 CFLAGS= $(INCLUDES) $(CFLAG)
27 ASFLAGS= $(INCLUDES) $(ASFLAG)
29 GENERAL=Makefile
30 TEST=casttest.c
31 APPS=
33 LIB=$(TOP)/libcrypto.a
34 LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
35 LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
37 SRC= $(LIBSRC)
39 EXHEADER= cast.h
40 HEADER= cast_s.h cast_lcl.h $(EXHEADER)
42 ALL= $(GENERAL) $(SRC) $(HEADER)
44 top:
45 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
47 all: lib
49 lib: $(LIBOBJ)
50 $(AR) $(LIB) $(LIBOBJ)
51 $(RANLIB) $(LIB) || echo Never mind.
52 @touch lib
54 # elf
55 asm/cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
56 (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > cx86-elf.s)
58 # a.out
59 asm/cx86-out.o: asm/cx86unix.cpp
60 $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o
62 # bsdi
63 asm/cx86bsdi.o: asm/cx86unix.cpp
64 $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
66 asm/cx86unix.cpp: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
67 (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp)
69 files:
70 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
72 links:
73 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
74 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
75 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
77 install:
78 @for i in $(EXHEADER) ; \
79 do \
80 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
81 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
82 done;
84 tags:
85 ctags $(SRC)
87 tests:
89 lint:
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
92 depend:
93 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
95 dclean:
96 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
97 mv -f Makefile.new $(MAKEFILE)
99 clean:
100 rm -f asm/cx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
102 # DO NOT DELETE THIS LINE -- make depend depends on it.
104 c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
105 c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
106 c_cfb64.o: c_cfb64.c cast_lcl.h
107 c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
108 c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
109 c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
110 c_enc.o: ../../e_os.h ../../include/openssl/cast.h
111 c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
112 c_enc.o: c_enc.c cast_lcl.h
113 c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
114 c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115 c_ofb64.o: c_ofb64.c cast_lcl.h
116 c_skey.o: ../../e_os.h ../../include/openssl/cast.h
117 c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
118 c_skey.o: c_skey.c cast_lcl.h cast_s.h