~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to demos/engines/ibmca/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-05-24 17:02:29 UTC
  • Revision ID: james.westby@ubuntu.com-20040524170229-ixlo08bbbly0xied
Tags: upstream-0.9.7d
ImportĀ upstreamĀ versionĀ 0.9.7d

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LIBNAME=        libibmca
 
2
SRC=            hw_ibmca.c
 
3
OBJ=            hw_ibmca.o
 
4
HEADER=         hw_ibmca.h
 
5
 
 
6
CC=             gcc
 
7
PIC=            -fPIC
 
8
CFLAGS=         -g -I../../../include $(PIC) -DENGINE_DYNAMIC_SUPPORT -DFLAT_INC
 
9
AR=             ar r
 
10
RANLIB=         ranlib
 
11
 
 
12
LIB=            $(LIBNAME).a
 
13
SHLIB=          $(LIBNAME).so
 
14
 
 
15
all:
 
16
                @echo 'Please choose a system to build on:'
 
17
                @echo ''
 
18
                @echo 'tru64:    Tru64 Unix, Digital Unix, Digital OSF/1'
 
19
                @echo 'solaris:  Solaris'
 
20
                @echo 'irix:     IRIX'
 
21
                @echo 'hpux32:   32-bit HP/UX'
 
22
                @echo 'hpux64:   64-bit HP/UX'
 
23
                @echo 'aix:      AIX'
 
24
                @echo 'gnu:      Generic GNU-based system (gcc and GNU ld)'
 
25
                @echo ''
 
26
 
 
27
FORCE.update:
 
28
update:         FORCE.update
 
29
                perl ../../../util/mkerr.pl -conf hw_ibmca.ec \
 
30
                        -nostatic -staticloader -write hw_ibmca.c
 
31
 
 
32
gnu:            $(SHLIB).gnu
 
33
tru64:          $(SHLIB).tru64
 
34
solaris:        $(SHLIB).solaris
 
35
irix:           $(SHLIB).irix
 
36
hpux32:         $(SHLIB).hpux32
 
37
hpux64:         $(SHLIB).hpux64
 
38
aix:            $(SHLIB).aix
 
39
 
 
40
$(LIB):         $(OBJ)
 
41
                $(AR) $(LIB) $(OBJ)
 
42
                - $(RANLIB) $(LIB)
 
43
 
 
44
LINK_SO=        \
 
45
  ld -r -o $(LIBNAME).o $$ALLSYMSFLAGS $(LIB) && \
 
46
  (nm -Pg $(LIBNAME).o | grep ' [BDT] ' | cut -f1 -d' ' > $(LIBNAME).exp; \
 
47
   $$SHAREDCMD $$SHAREDFLAGS -o $(SHLIB) $(LIBNAME).o -L ../../.. -lcrypto -lc)
 
48
 
 
49
$(SHLIB).gnu:   $(LIB)
 
50
                ALLSYMSFLAGS='--whole-archive' \
 
51
                SHAREDFLAGS='-shared -Wl,-soname=$(SHLIB)' \
 
52
                SHAREDCMD='$(CC)'; \
 
53
                $(LINK_SO)
 
54
                touch $(SHLIB).gnu
 
55
$(SHLIB).tru64: $(LIB)
 
56
                ALLSYMSFLAGS='-all' \
 
57
                SHAREDFLAGS='-shared' \
 
58
                SHAREDCMD='$(CC)'; \
 
59
                $(LINK_SO)
 
60
                touch $(SHLIB).tru64
 
61
$(SHLIB).solaris:       $(LIB)
 
62
                ALLSYMSFLAGS='-z allextract' \
 
63
                SHAREDFLAGS='-G -h $(SHLIB)' \
 
64
                SHAREDCMD='$(CC)'; \
 
65
                $(LINK_SO)
 
66
                touch $(SHLIB).solaris
 
67
$(SHLIB).irix:  $(LIB)
 
68
                ALLSYMSFLAGS='-all' \
 
69
                SHAREDFLAGS='-shared -Wl,-soname,$(SHLIB)' \
 
70
                SHAREDCMD='$(CC)'; \
 
71
                $(LINK_SO)
 
72
                touch $(SHLIB).irix
 
73
$(SHLIB).hpux32:        $(LIB)
 
74
                ALLSYMSFLAGS='-Fl' \
 
75
                SHAREDFLAGS='+vnocompatwarnings -b -z +s +h $(SHLIB)' \
 
76
                SHAREDCMD='/usr/ccs/bin/ld'; \
 
77
                $(LINK_SO)
 
78
                touch $(SHLIB).hpux32
 
79
$(SHLIB).hpux64:        $(LIB)
 
80
                ALLSYMSFLAGS='+forceload' \
 
81
                SHAREDFLAGS='-b -z +h $(SHLIB)' \
 
82
                SHAREDCMD='/usr/ccs/bin/ld'; \
 
83
                $(LINK_SO)
 
84
                touch $(SHLIB).hpux64
 
85
$(SHLIB).aix:   $(LIB)
 
86
                ALLSYMSFLAGS='-bnogc' \
 
87
                SHAREDFLAGS='-G -bE:$(LIBNAME).exp -bM:SRE' \
 
88
                SHAREDCMD='$(CC)'; \
 
89
                $(LINK_SO)
 
90
                touch $(SHLIB).aix
 
91
 
 
92
depend:
 
93
                sed -e '/^# DO NOT DELETE.*/,$$d' < Makefile > Makefile.tmp
 
94
                echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
 
95
                gcc -M $(CFLAGS) $(SRC) >> Makefile.tmp
 
96
                perl ../../../util/clean-depend.pl < Makefile.tmp > Makefile.new
 
97
                rm -f Makefile.tmp Makefile
 
98
                mv Makefile.new Makefile
 
99
 
 
100
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
101
 
 
102
rsaref.o: ../../../include/openssl/asn1.h ../../../include/openssl/bio.h
 
103
rsaref.o: ../../../include/openssl/bn.h ../../../include/openssl/crypto.h
 
104
rsaref.o: ../../../include/openssl/dh.h ../../../include/openssl/dsa.h
 
105
rsaref.o: ../../../include/openssl/e_os2.h ../../../include/openssl/engine.h
 
106
rsaref.o: ../../../include/openssl/err.h ../../../include/openssl/lhash.h
 
107
rsaref.o: ../../../include/openssl/opensslconf.h
 
108
rsaref.o: ../../../include/openssl/opensslv.h
 
109
rsaref.o: ../../../include/openssl/ossl_typ.h ../../../include/openssl/rand.h
 
110
rsaref.o: ../../../include/openssl/rsa.h ../../../include/openssl/safestack.h
 
111
rsaref.o: ../../../include/openssl/stack.h ../../../include/openssl/symhacks.h
 
112
rsaref.o: ../../../include/openssl/ui.h rsaref.c rsaref_err.c rsaref_err.h
 
113
rsaref.o: source/des.h source/global.h source/md2.h source/md5.h source/rsa.h
 
114
rsaref.o: source/rsaref.h