Remove deleted PKCS#12 functions from pkcs12.h, get rid of object creation
[openssl.git] / crypto / pkcs12 / Makefile.ssl
1 #
2 # SSLeay/crypto/asn1/Makefile
3 #
4
5 DIR=    pkcs12
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14 AR=             ar r
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17
18 ERR=pkcs12
19 ERRC=pk12err
20 GENERAL=Makefile
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= p12_add.c p12_attr.c p12_bags.c p12_crpt.c p12_crt.c p12_decr.c \
26         p12_init.c p12_key.c p12_kiss.c p12_lib.c p12_mac.c p12_mutl.c\
27         p12_sbag.c p12_utl.c pk12err.c
28 LIBOBJ= p12_add.o p12_attr.o p12_bags.o p12_crpt.o p12_crt.o p12_decr.o \
29         p12_init.o p12_key.o p12_kiss.o p12_lib.o p12_mac.o p12_mutl.o\
30         p12_sbag.o p12_utl.o pk12err.o
31
32 SRC= $(LIBSRC)
33
34 EXHEADER=  pkcs12.h
35 HEADER= $(EXHEADER)
36
37 ALL=    $(GENERAL) $(SRC) $(HEADER)
38
39 top:
40         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41
42 test:
43
44 all:    lib
45
46 lib:    $(LIBOBJ)
47         $(AR) $(LIB) $(LIBOBJ)
48         sh $(TOP)/util/ranlib.sh $(LIB)
49         @touch lib
50
51 files:
52         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
53
54 links:
55         @$(TOP)/util/point.sh Makefile.ssl Makefile
56         @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
57         @$(TOP)/util/mklink.sh ../../test $(TEST)
58         @$(TOP)/util/mklink.sh ../../apps $(APPS)
59
60 install:
61         @for i in $(EXHEADER) ; \
62         do  \
63         (cp $$i $(INSTALLTOP)/include/$$i; \
64         chmod 644 $(INSTALLTOP)/include/$$i ); \
65         done;
66
67 tags:
68         ctags $(SRC)
69
70 tests:
71
72 lint:
73         lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75 depend:
76         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
77
78 dclean:
79         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
80         mv -f Makefile.new $(MAKEFILE)
81
82 clean:
83         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
84
85 errors: $(ERRC).c
86
87 $(ERRC).c: $(ERR).err
88         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
89         perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
90
91 # DO NOT DELETE THIS LINE -- make depend depends on it.