]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/whrlpool/Makefile
Engage Whirlpool assembler and mention Whirlpool in CHANGES.
[thirdparty/openssl.git] / crypto / whrlpool / Makefile
CommitLineData
4adfe93c
AP
1#
2# crypto/whrlpool/Makefile
3#
4
5DIR= whrlpool
6TOP= ../..
7CC= cc
8CPP= $(CC) -E
9INCLUDES=
10CFLAG=-g
11MAKEFILE= Makefile
12AR= ar r
13
14CFLAGS= $(INCLUDES) $(CFLAG)
15ASFLAGS= $(INCLUDES) $(ASFLAG)
16AFLAGS= $(ASFLAGS)
17
18GENERAL=Makefile
19TEST=wp_test.c
20APPS=
21
22LIB=$(TOP)/libcrypto.a
23LIBSRC=wp_dgst.c wp_block.c
ed26604a 24LIBOBJ=wp_dgst.o wp_block.o $(WP_ASM_OBJ)
4adfe93c
AP
25
26SRC= $(LIBSRC)
27
28EXHEADER= whrlpool.h
29HEADER= wp_locl.h $(EXHEADER)
30
31ALL= $(GENERAL) $(SRC) $(HEADER)
32
33top:
34 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
35
36all: lib
37
38lib: $(LIBOBJ)
39 $(AR) $(LIB) $(LIBOBJ)
40 $(RANLIB) $(LIB) || echo Never mind.
41 @touch lib
42
ed26604a 43w86mmx-elf.s: asm/wp-mmx.pl ../perlasm/x86asm.pl
4adfe93c 44 (cd asm; $(PERL) wp-mmx.pl elf $(CFLAGS) $(PROCESSOR)) > $@
ed26604a 45w86mmx-cof.s: asm/wp-mmx.pl ../perlasm/x86asm.pl
4adfe93c 46 (cd asm; $(PERL) wp-mmx.pl coff $(CFLAGS) $(PROCESSOR)) > $@
ed26604a 47w86mmx-out.s: asm/wp-mmx.pl ../perlasm/x86asm.pl
4adfe93c
AP
48 (cd asm; $(PERL) wp-mmx.pl a.out $(CFLAGS) $(PROCESSOR)) > $@
49
ed26604a
AP
50wp-x86_64.s: asm/wp-x86_64.pl
51 $(PERL) asm/wp-x86_64.pl $@
52
4adfe93c
AP
53$(LIBOBJ): $(LIBSRC)
54
55files:
56 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
57
58links:
59 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
60 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
61 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
62
63install:
64 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
65 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
66 do \
67 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
68 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
69 done;
70
71tags:
72 ctags $(SRC)
73
74tests:
75
76lint:
77 lint -DLINT $(INCLUDES) $(SRC)>fluff
78
79depend:
80 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
81 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
82
83dclean:
84 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
85 mv -f Makefile.new $(MAKEFILE)
86
87clean:
88 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
89
90# DO NOT DELETE THIS LINE -- make depend depends on it.
91
92wp_block.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
93wp_block.o: ../../include/openssl/whrlpool.h wp_block.c wp_locl.h
94wp_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
95wp_dgst.o: ../../include/openssl/whrlpool.h wp_dgst.c wp_locl.h