2001-11-14 22:42:35 +00:00
|
|
|
LIBNAME= librsaref
|
|
|
|
SRC= rsaref.c
|
|
|
|
OBJ= rsaref.o
|
|
|
|
HEADER= rsaref.h
|
|
|
|
|
|
|
|
CC= gcc
|
|
|
|
PIC= -fPIC
|
|
|
|
CFLAGS= -g -I../../../include $(PIC) -DENGINE_DYNAMIC_SUPPORT
|
|
|
|
AR= ar r
|
|
|
|
RANLIB= ranlib
|
|
|
|
|
|
|
|
LIB= $(LIBNAME).a
|
|
|
|
SHLIB= $(LIBNAME).so
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo 'Please choose a system to build on:'
|
|
|
|
@echo ''
|
|
|
|
@echo 'tru64: Tru64 Unix, Digital Unix, Digital OSF/1'
|
|
|
|
@echo 'solaris: Solaris'
|
|
|
|
@echo 'irix: IRIX'
|
|
|
|
@echo 'hpux32: 32-bit HP/UX'
|
|
|
|
@echo 'hpux64: 64-bit HP/UX'
|
|
|
|
@echo 'aix: AIX'
|
|
|
|
@echo 'gnu: Generic GNU-based system (gcc and GNU ld)'
|
|
|
|
@echo ''
|
|
|
|
|
|
|
|
FORCE.install:
|
|
|
|
install: FORCE.install
|
|
|
|
cd install; \
|
2001-11-14 23:25:46 +00:00
|
|
|
make -f unix/makefile CFLAGS='-I. -DPROTOTYPES=1 -O -c' RSAREFLIB=librsaref.a librsaref.a
|
2001-11-14 22:42:35 +00:00
|
|
|
|
2001-11-15 16:56:17 +00:00
|
|
|
FORCE.update:
|
|
|
|
update: FORCE.update
|
|
|
|
perl ../../../util/mkerr.pl -conf rsaref.ec \
|
|
|
|
-nostatic -staticloader -write rsaref.c
|
|
|
|
|
2002-10-10 12:46:05 +00:00
|
|
|
darwin: install $(SHLIB).darwin
|
|
|
|
cygwin: install $(SHLIB).cygwin
|
2001-11-14 22:42:35 +00:00
|
|
|
gnu: install $(SHLIB).gnu
|
2002-10-10 12:46:05 +00:00
|
|
|
alpha-osf1: install $(SHLIB).alpha-osf1
|
2001-11-14 22:42:35 +00:00
|
|
|
tru64: install $(SHLIB).tru64
|
|
|
|
solaris: install $(SHLIB).solaris
|
|
|
|
irix: install $(SHLIB).irix
|
|
|
|
hpux32: install $(SHLIB).hpux32
|
|
|
|
hpux64: install $(SHLIB).hpux64
|
|
|
|
aix: install $(SHLIB).aix
|
2002-10-10 12:46:05 +00:00
|
|
|
reliantunix: install $(SHLIB).reliantunix
|
2001-11-14 22:42:35 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJ)
|
|
|
|
$(AR) $(LIB) $(OBJ)
|
|
|
|
- $(RANLIB) $(LIB)
|
|
|
|
|
|
|
|
LINK_SO= \
|
|
|
|
ld -r -o $(LIBNAME).o $$ALLSYMSFLAGS $(LIB) install/librsaref.a && \
|
2002-08-13 12:30:27 +00:00
|
|
|
(nm -Pg $(LIBNAME).o | grep ' [BDT] ' | cut -f1 -d' ' > $(LIBNAME).exp; \
|
2001-11-15 16:56:17 +00:00
|
|
|
$$SHAREDCMD $$SHAREDFLAGS -o $(SHLIB) $(LIBNAME).o -L ../../.. -lcrypto -lc)
|
2001-11-14 22:42:35 +00:00
|
|
|
|
2002-10-10 12:46:05 +00:00
|
|
|
$(SHLIB).darwin: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-all_load' \
|
|
|
|
SHAREDFLAGS='-dynamiclib -install_name $(SHLIB)' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
2002-11-13 14:31:34 +00:00
|
|
|
touch $(SHLIB).darwin
|
2002-10-10 12:46:05 +00:00
|
|
|
$(SHLIB).cygwin: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='--whole-archive' \
|
|
|
|
SHAREDFLAGS='-shared -Wl,-Bsymbolic -Wl,--out-implib,$(LIBNAME).dll.a' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
2002-11-13 14:31:34 +00:00
|
|
|
touch $(SHLIB).cygwin
|
2001-11-14 22:42:35 +00:00
|
|
|
$(SHLIB).gnu: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='--whole-archive' \
|
|
|
|
SHAREDFLAGS='-shared -Wl,-soname=$(SHLIB)' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).gnu
|
|
|
|
$(SHLIB).tru64: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-all' \
|
|
|
|
SHAREDFLAGS='-shared' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).tru64
|
|
|
|
$(SHLIB).solaris: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-z allextract' \
|
|
|
|
SHAREDFLAGS='-G -h $(SHLIB)' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).solaris
|
|
|
|
$(SHLIB).irix: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-all' \
|
|
|
|
SHAREDFLAGS='-shared -Wl,-soname,$(SHLIB)' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).irix
|
|
|
|
$(SHLIB).hpux32: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-Fl' \
|
|
|
|
SHAREDFLAGS='+vnocompatwarnings -b -z +s +h $(SHLIB)' \
|
|
|
|
SHAREDCMD='/usr/ccs/bin/ld'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).hpux32
|
|
|
|
$(SHLIB).hpux64: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='+forceload' \
|
|
|
|
SHAREDFLAGS='-b -z +h $(SHLIB)' \
|
|
|
|
SHAREDCMD='/usr/ccs/bin/ld'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).hpux64
|
|
|
|
$(SHLIB).aix: $(LIB) install/librsaref.a
|
|
|
|
ALLSYMSFLAGS='-bnogc' \
|
|
|
|
SHAREDFLAGS='-G -bE:$(LIBNAME).exp -bM:SRE' \
|
|
|
|
SHAREDCMD='$(CC)'; \
|
|
|
|
$(LINK_SO)
|
|
|
|
touch $(SHLIB).aix
|
2001-11-15 16:56:17 +00:00
|
|
|
|
|
|
|
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
|