]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/cast/Makefile.ssl
Complete rewrite of the error code generation script. It now runs as a single
[thirdparty/openssl.git] / crypto / cast / Makefile.ssl
CommitLineData
58964a49
RE
1#
2# SSLeay/crypto/cast/Makefile
3#
4
5DIR= cast
6TOP= ../..
7CC= cc
8CPP= $(CC) -E
9INCLUDES=
10CFLAG=-g
11INSTALLTOP=/usr/local/ssl
12MAKE= make -f Makefile.ssl
8039257d 13MAKEDEPEND= $(TOP)/util/domd $(TOP)
58964a49
RE
14MAKEFILE= Makefile.ssl
15AR= ar r
16
17CAST_ENC=c_enc.o
18# or use
19#CAST_ENC=asm/cx86-elf.o
20#CAST_ENC=asm/cx86-out.o
21#CAST_ENC=asm/cx86-sol.o
22#CAST_ENC=asm/cx86bdsi.o
23
24CFLAGS= $(INCLUDES) $(CFLAG)
25
26GENERAL=Makefile
27TEST=casttest.c
28APPS=
29
30LIB=$(TOP)/libcrypto.a
31LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
32LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
33
34SRC= $(LIBSRC)
35
36EXHEADER= cast.h
37HEADER= cast_s.h cast_lcl.h $(EXHEADER)
38
39ALL= $(GENERAL) $(SRC) $(HEADER)
40
41top:
42 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
43
44all: lib
45
46lib: $(LIBOBJ)
47 $(AR) $(LIB) $(LIBOBJ)
99aab161 48 $(RANLIB) $(LIB)
58964a49
RE
49 @touch lib
50
51# elf
52asm/cx86-elf.o: asm/cx86unix.cpp
53 $(CPP) -DELF asm/cx86unix.cpp | as -o asm/cx86-elf.o
54
55# solaris
56asm/cx86-sol.o: asm/cx86unix.cpp
57 $(CC) -E -DSOL asm/cx86unix.cpp | sed 's/^#.*//' > asm/cx86-sol.s
58 as -o asm/cx86-sol.o asm/cx86-sol.s
59 rm -f asm/cx86-sol.s
60
61# a.out
62asm/cx86-out.o: asm/cx86unix.cpp
63 $(CPP) -DOUT asm/cx86unix.cpp | as -o asm/cx86-out.o
64
65# bsdi
66asm/cx86bsdi.o: asm/cx86unix.cpp
dfeab068 67 $(CPP) -DBSDI asm/cx86unix.cpp | sed 's/ :/:/' | as -o asm/cx86bsdi.o
58964a49 68
649cdb7b 69asm/cx86unix.cpp: asm/cast-586.pl
99aab161 70 (cd asm; $(PERL) cast-586.pl cpp $(PROCESSOR) >cx86unix.cpp)
58964a49
RE
71
72files:
99aab161 73 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
58964a49
RE
74
75links:
bb8f3c58 76 @$(TOP)/util/point.sh Makefile.ssl Makefile
ec577822 77 @$(TOP)/util/mklink.sh ../../include/openssl $(EXHEADER)
bb8f3c58
RE
78 @$(TOP)/util/mklink.sh ../../test $(TEST)
79 @$(TOP)/util/mklink.sh ../../apps $(APPS)
58964a49
RE
80
81install:
82 @for i in $(EXHEADER) ; \
83 do \
ec577822
BM
84 (cp $$i $(INSTALLTOP)/include/openssl/$$i; \
85 chmod 644 $(INSTALLTOP)/include/openssl/$$i ); \
58964a49
RE
86 done;
87
88tags:
89 ctags $(SRC)
90
91tests:
92
93lint:
94 lint -DLINT $(INCLUDES) $(SRC)>fluff
95
96depend:
97 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
98
99dclean:
99aab161 100 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
58964a49
RE
101 mv -f Makefile.new $(MAKEFILE)
102
103clean:
bb8f3c58 104 rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
58964a49 105
58964a49 106# DO NOT DELETE THIS LINE -- make depend depends on it.
6242bb9c 107
bf57da07
BM
108c_cfb64.o: ../../include/openssl/cast.h cast_lcl.h
109c_ecb.o: ../../include/openssl/cast.h ../../include/openssl/opensslv.h
110c_ecb.o: cast_lcl.h
111c_enc.o: ../../include/openssl/cast.h cast_lcl.h
112c_ofb64.o: ../../include/openssl/cast.h cast_lcl.h
113c_skey.o: ../../include/openssl/cast.h cast_lcl.h cast_s.h