Name the flag files correctly.
[openssl.git] / demos / engines / rsaref / Makefile
index f5e57bd..63b8c79 100644 (file)
@@ -29,13 +29,22 @@ install:    FORCE.install
                cd install; \
                        make -f unix/makefile CFLAGS='-I. -DPROTOTYPES=1 -O -c' RSAREFLIB=librsaref.a librsaref.a
 
+FORCE.update:
+update:                FORCE.update
+               perl ../../../util/mkerr.pl -conf rsaref.ec \
+                       -nostatic -staticloader -write rsaref.c
+
+darwin:                install $(SHLIB).darwin
+cygwin:                install $(SHLIB).cygwin
 gnu:           install $(SHLIB).gnu
+alpha-osf1:    install $(SHLIB).alpha-osf1
 tru64:         install $(SHLIB).tru64
 solaris:       install $(SHLIB).solaris
 irix:          install $(SHLIB).irix
 hpux32:                install $(SHLIB).hpux32
 hpux64:                install $(SHLIB).hpux64
 aix:           install $(SHLIB).aix
+reliantunix:   install $(SHLIB).reliantunix
 
 $(LIB):                $(OBJ)
                $(AR) $(LIB) $(OBJ)
@@ -43,9 +52,21 @@ $(LIB):              $(OBJ)
 
 LINK_SO=       \
   ld -r -o $(LIBNAME).o $$ALLSYMSFLAGS $(LIB) install/librsaref.a && \
-  (nm -Pg $(LIBNAME).o | grep ' [BD] ' | cut -f1 -d' ' > $(LIBNAME).exp; \
-   $$SHAREDCMD $$SHAREDFLAGS -o $(SHLIB) $(LIBNAME).o -L ../../.. -lcrypto)
+  (nm -Pg $(LIBNAME).o | grep ' [BDT] ' | cut -f1 -d' ' > $(LIBNAME).exp; \
+   $$SHAREDCMD $$SHAREDFLAGS -o $(SHLIB) $(LIBNAME).o -L ../../.. -lcrypto -lc)
 
+$(SHLIB).darwin:       $(LIB) install/librsaref.a
+               ALLSYMSFLAGS='-all_load' \
+               SHAREDFLAGS='-dynamiclib -install_name $(SHLIB)' \
+               SHAREDCMD='$(CC)'; \
+               $(LINK_SO)
+               touch $(SHLIB).darwin
+$(SHLIB).cygwin:       $(LIB) install/librsaref.a
+               ALLSYMSFLAGS='--whole-archive' \
+               SHAREDFLAGS='-shared -Wl,-Bsymbolic -Wl,--out-implib,$(LIBNAME).dll.a' \
+               SHAREDCMD='$(CC)'; \
+               $(LINK_SO)
+               touch $(SHLIB).cygwin
 $(SHLIB).gnu:  $(LIB) install/librsaref.a
                ALLSYMSFLAGS='--whole-archive' \
                SHAREDFLAGS='-shared -Wl,-soname=$(SHLIB)' \
@@ -88,3 +109,27 @@ $(SHLIB).aix:       $(LIB) install/librsaref.a
                SHAREDCMD='$(CC)'; \
                $(LINK_SO)
                touch $(SHLIB).aix
+
+depend:
+               sed -e '/^# DO NOT DELETE.*/,$$d' < Makefile > Makefile.tmp
+               echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
+               gcc -M $(CFLAGS) $(SRC) >> Makefile.tmp
+               perl ../../../util/clean-depend.pl < Makefile.tmp > Makefile.new
+               rm -f Makefile.tmp Makefile
+               mv Makefile.new Makefile
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
+
+rsaref.o: ../../../include/openssl/asn1.h ../../../include/openssl/bio.h
+rsaref.o: ../../../include/openssl/bn.h ../../../include/openssl/crypto.h
+rsaref.o: ../../../include/openssl/dh.h ../../../include/openssl/dsa.h
+rsaref.o: ../../../include/openssl/e_os2.h ../../../include/openssl/engine.h
+rsaref.o: ../../../include/openssl/err.h ../../../include/openssl/lhash.h
+rsaref.o: ../../../include/openssl/opensslconf.h
+rsaref.o: ../../../include/openssl/opensslv.h
+rsaref.o: ../../../include/openssl/ossl_typ.h ../../../include/openssl/rand.h
+rsaref.o: ../../../include/openssl/rsa.h ../../../include/openssl/safestack.h
+rsaref.o: ../../../include/openssl/stack.h ../../../include/openssl/symhacks.h
+rsaref.o: ../../../include/openssl/ui.h rsaref.c rsaref_err.c rsaref_err.h
+rsaref.o: source/des.h source/global.h source/md2.h source/md5.h source/rsa.h
+rsaref.o: source/rsaref.h