2 # SSLeay/crypto/sha/Makefile
10 INSTALLTOP=/usr/local/ssl
11 MAKE= make -f Makefile.ssl
12 MAKEDEPEND= $(TOP)/util/domd $(TOP)
13 MAKEFILE= Makefile.ssl
18 CFLAGS= $(INCLUDES) $(CFLAG)
21 TEST=shatest.c sha1test.c
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
26 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
31 HEADER= sha_locl.h $(EXHEADER)
33 ALL= $(GENERAL) $(SRC) $(HEADER)
36 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41 $(AR) $(LIB) $(LIBOBJ)
42 sh $(TOP)/util/ranlib.sh $(LIB)
46 asm/sx86-elf.o: asm/sx86unix.cpp
47 $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o
50 asm/sx86-sol.o: asm/sx86unix.cpp
51 $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s
52 as -o asm/sx86-sol.o asm/sx86-sol.s
56 asm/sx86-out.o: asm/sx86unix.cpp
57 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
60 asm/sx86bsdi.o: asm/sx86unix.cpp
61 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
64 (cd asm; perl sha1-586.pl cpp >sx86unix.cpp)
67 perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
70 @$(TOP)/util/point.sh Makefile.ssl Makefile
71 @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
72 @$(TOP)/util/mklink.sh ../../test $(TEST)
73 @$(TOP)/util/mklink.sh ../../apps $(APPS)
76 @for i in $(EXHEADER) ; \
78 (cp $$i $(INSTALLTOP)/include/$$i; \
79 chmod 644 $(INSTALLTOP)/include/$$i ); \
88 lint -DLINT $(INCLUDES) $(SRC)>fluff
91 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
94 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
95 mv -f Makefile.new $(MAKEFILE)
98 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
102 # DO NOT DELETE THIS LINE -- make depend depends on it.