STACK_OF(SSL_COMP) is a public type
[openssl.git] / crypto / cast / Makefile
1 #
2 # OpenSSL/crypto/cast/Makefile
3 #
4
5 DIR=    cast
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13
14 CAST_ENC=c_enc.o
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c 
24 LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
25
26 SRC= $(LIBSRC)
27
28 HEADER= cast_s.h cast_lcl.h
29
30 ALL=    $(GENERAL) $(SRC) $(HEADER)
31
32 top:
33         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
34
35 all:    lib
36
37 lib:    $(LIBOBJ)
38         $(AR) $(LIB) $(LIBOBJ)
39         $(RANLIB) $(LIB) || echo Never mind.
40         @touch lib
41
42 cast-586.s:     asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
43         $(PERL) asm/cast-586.pl $(PERLASM_SCHEME) $(CLAGS) $(PROCESSOR) > $@
44
45 files:
46         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
47
48 tags:
49         ctags $(SRC)
50
51 tests:
52
53 lint:
54         lint -DLINT $(INCLUDES) $(SRC)>fluff
55
56 update: depend
57
58 depend:
59         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
60         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
61
62 dclean:
63         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
64         mv -f Makefile.new $(MAKEFILE)
65
66 clean:
67         rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
68
69 # DO NOT DELETE THIS LINE -- make depend depends on it.
70
71 c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
72 c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
73 c_cfb64.o: c_cfb64.c cast_lcl.h
74 c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
75 c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
76 c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
77 c_enc.o: ../../e_os.h ../../include/openssl/cast.h
78 c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
79 c_enc.o: c_enc.c cast_lcl.h
80 c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
81 c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
82 c_ofb64.o: c_ofb64.c cast_lcl.h
83 c_skey.o: ../../e_os.h ../../include/openssl/cast.h
84 c_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
85 c_skey.o: c_skey.c cast_lcl.h cast_s.h