Makefile revision 142425
1#
2# SSLeay/crypto/sha/Makefile
3#
4
5DIR=    sha
6TOP=    ../..
7CC=     cc
8CPP=    $(CC) -E
9INCLUDES=
10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR=     /usr/local/ssl
13INSTALLTOP=/usr/local/ssl
14MAKEDEPPROG=	makedepend
15MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE=       Makefile
17AR=             ar r
18
19SHA1_ASM_OBJ=
20
21CFLAGS= $(INCLUDES) $(CFLAG)
22ASFLAGS= $(INCLUDES) $(ASFLAG)
23
24GENERAL=Makefile
25TEST=shatest.c sha1test.c
26APPS=
27
28LIB=$(TOP)/libcrypto.a
29LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
30LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
31
32SRC= $(LIBSRC)
33
34EXHEADER= sha.h
35HEADER= sha_locl.h $(EXHEADER)
36
37ALL=    $(GENERAL) $(SRC) $(HEADER)
38
39top:
40	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41
42all:    lib
43
44lib:    $(LIBOBJ)
45	$(AR) $(LIB) $(LIBOBJ)
46	$(RANLIB) $(LIB) || echo Never mind.
47	@touch lib
48
49# elf
50asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
51	(cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
52
53# a.out
54asm/sx86-out.o: asm/sx86unix.cpp
55	$(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
56
57# bsdi
58asm/sx86bsdi.o: asm/sx86unix.cpp
59	$(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
60
61asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
62	(cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
63
64files:
65	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
66
67links:
68	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
69	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
70	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
71
72install:
73	@for i in $(EXHEADER) ; \
74	do  \
75	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
76	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
77	done;
78
79tags:
80	ctags $(SRC)
81
82tests:
83
84lint:
85	lint -DLINT $(INCLUDES) $(SRC)>fluff
86
87depend:
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:
95	rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
96
97# DO NOT DELETE THIS LINE -- make depend depends on it.
98
99sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100sha1_one.o: ../../include/openssl/opensslconf.h
101sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
102sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
103sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c
104sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
105sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
106sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
107sha1dgst.o: ../../include/openssl/opensslconf.h
108sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
109sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
110sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c
111sha1dgst.o: sha_locl.h
112sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
113sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
114sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
115sha_dgst.o: ../../include/openssl/opensslconf.h
116sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
117sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
118sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c
119sha_dgst.o: sha_locl.h
120sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
121sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
122sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
123sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
124sha_one.o: sha_one.c
125