]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/modes/Makefile
sparcv9cap.c: disengange Solaris-specific CPU detection routine in favour
[thirdparty/openssl.git] / crypto / modes / Makefile
CommitLineData
85b2c0ce
AP
1#
2# OpenSSL/crypto/modes/Makefile
3#
4
5DIR= modes
6TOP= ../..
7CC= cc
8INCLUDES= -I.. -I$(TOP) -I../../include
9CFLAG=-g
10MAKEFILE= Makefile
11AR= ar r
12
8a1c92ce
AP
13MODES_ASM_OBJ=
14
85b2c0ce 15CFLAGS= $(INCLUDES) $(CFLAG)
8a1c92ce
AP
16ASFLAGS= $(INCLUDES) $(ASFLAG)
17AFLAGS= $(ASFLAGS)
85b2c0ce
AP
18
19GENERAL=Makefile
20TEST=
21APPS=
22
23LIB=$(TOP)/libcrypto.a
8a1c92ce
AP
24LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c
25LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
26 $(MODES_ASM_OBJ)
85b2c0ce
AP
27
28SRC= $(LIBSRC)
29
30#EXHEADER= store.h str_compat.h
31EXHEADER= modes.h
32HEADER= $(EXHEADER)
33
34ALL= $(GENERAL) $(SRC) $(HEADER)
35
36top:
37 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39all: lib
40
41lib: $(LIBOBJ)
42 $(AR) $(LIB) $(LIBOBJ)
43 $(RANLIB) $(LIB) || echo Never mind.
44 @touch lib
45
8a1c92ce
AP
46aes-ia64.s: asm/ghash-ia64.pl
47 $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
48ghash-x86.s: asm/ghash-x86.pl
49 $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
50ghash-x86_64.s: asm/ghash-x86_64.pl
51 $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
52ghash-sparcv9.s: asm/ghash-sparcv9.pl
b2875087 53 $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
8a1c92ce
AP
54ghash-alpha.s: asm/ghash-alpha.pl
55 $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
5e19ee96 56ghash-parisc.s: asm/ghash-parisc.pl
3fdd168f 57 $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
396df731 58
8a1c92ce 59# GNU make "catch all"
396df731 60ghash-%.s: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
8a1c92ce 61
85b2c0ce
AP
62files:
63 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
64
65links:
66 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
67 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
68 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
69
70install:
71 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
72 @headerlist="$(EXHEADER)"; for i in $$headerlist; \
73 do \
74 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
75 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
76 done;
77
78tags:
79 ctags $(SRC)
80
81tests:
82
83lint:
84 lint -DLINT $(INCLUDES) $(SRC)>fluff
85
86depend:
87 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
88 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
89
90dclean:
91 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92 mv -f Makefile.new $(MAKEFILE)
93
94clean:
6559b40d 95 rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
85b2c0ce
AP
96
97# DO NOT DELETE THIS LINE -- make depend depends on it.
98
f472ec8c
AP
99cbc128.o: ../../include/openssl/modes.h cbc128.c modes_lcl.h
100cfb128.o: ../../include/openssl/modes.h cfb128.c modes_lcl.h
101ctr128.o: ../../include/openssl/modes.h ctr128.c modes_lcl.h
102cts128.o: ../../include/openssl/modes.h cts128.c modes_lcl.h
103gcm128.o: ../../include/openssl/modes.h gcm128.c modes_lcl.h
104ofb128.o: ../../include/openssl/modes.h modes_lcl.h ofb128.c