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