New Makefile variables $(RANLIB) and $(PERL).
[openssl.git] / crypto / dh / Makefile.ssl
index dfa7e4525d002801266e25c6245c49f0dcb7b7a4..acec3c60fe2fcd5b5953172e0833c0b6312e6bea 100644 (file)
@@ -9,7 +9,7 @@ INCLUDES= -I.. -I../../include
 CFLAG=-g
 INSTALLTOP=/usr/local/ssl
 MAKE=          make -f Makefile.ssl
-MAKEDEPEND=    makedepend -f Makefile.ssl
+MAKEDEPEND=    $(TOP)/util/domd $(TOP)
 MAKEFILE=      Makefile.ssl
 AR=            ar r
 
@@ -39,18 +39,17 @@ all:        lib
 
 lib:   $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
-       sh $(TOP)/util/ranlib.sh $(LIB)
+       $(RANLIB) $(LIB)
        @touch lib
 
 files:
-       perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
+       $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
 
 links:
-       /bin/rm -f Makefile
-       $(TOP)/util/point.sh Makefile.ssl Makefile ;
-       $(TOP)/util/mklink.sh ../../include $(EXHEADER)
-       $(TOP)/util/mklink.sh ../../test $(TEST)
-       $(TOP)/util/mklink.sh ../../apps $(APPS)
+       @$(TOP)/util/point.sh Makefile.ssl Makefile
+       @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
+       @$(TOP)/util/mklink.sh ../../test $(TEST)
+       @$(TOP)/util/mklink.sh ../../apps $(APPS)
 
 install:
        @for i in $(EXHEADER) ; \
@@ -71,14 +70,30 @@ depend:
        $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
 
 dclean:
-       perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
+       $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
        mv -f Makefile.new $(MAKEFILE)
 
 clean:
-       /bin/rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
+       rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
 
-errors:
-       perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
-       perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
+errors: $(ERRC).c
+
+$(ERRC).c: $(ERR).err
+       $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
+       $(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
 
 # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+dh_check.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
+dh_check.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h
+dh_check.o: ../cryptlib.h ../crypto.h ../opensslv.h dh.h
+dh_err.o: ../../include/err.h dh.h
+dh_gen.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
+dh_gen.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h
+dh_gen.o: ../cryptlib.h ../crypto.h ../opensslv.h dh.h
+dh_key.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
+dh_key.o: ../../include/e_os.h ../../include/err.h ../../include/rand.h
+dh_key.o: ../../include/stack.h ../cryptlib.h ../crypto.h ../opensslv.h dh.h
+dh_lib.o: ../../include/bio.h ../../include/bn.h ../../include/buffer.h
+dh_lib.o: ../../include/e_os.h ../../include/err.h ../../include/stack.h
+dh_lib.o: ../cryptlib.h ../crypto.h ../opensslv.h dh.h