Initial addition of new X509 V3 files, tidy of old files.
[openssl.git] / crypto / x509v3 / Makefile.ssl
1 #
2 # SSLeay/crypto/x509v3/Makefile
3 #
4
5 DIR=    x509v3
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=x509v3
19 ERRC=v3err
20 GENERAL=Makefile README
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= v3_bcons.c v3_bitstr.c v3_conf.c v3_extku.c v3_ia5.c \
26 v3_lib.c v3_prn.c v3_utl.c v3err.c 
27 LIBOBJ= v3_bcons.o v3_bitstr.o v3_conf.o v3_extku.o v3_ia5.o v3_lib.o \
28 v3_prn.o v3_utl.o v3err.o
29
30 SRC= $(LIBSRC)
31
32 EXHEADER= x509v3.h
33 HEADER= $(EXHEADER)
34
35 ALL=    $(GENERAL) $(SRC) $(HEADER)
36
37 top:
38         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         sh $(TOP)/util/ranlib.sh $(LIB)
45         @touch lib
46
47 files:
48         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
49
50 links:
51         /bin/rm -f Makefile
52         $(TOP)/util/point.sh Makefile.ssl Makefile ;
53         $(TOP)/util/mklink.sh ../../include $(EXHEADER)
54         $(TOP)/util/mklink.sh ../../test $(TEST)
55         $(TOP)/util/mklink.sh ../../apps $(APPS)
56
57 install:
58         @for i in $(EXHEADER) ; \
59         do  \
60         (cp $$i $(INSTALLTOP)/include/$$i; \
61         chmod 644 $(INSTALLTOP)/include/$$i ); \
62         done;
63
64 tags:
65         ctags $(SRC)
66
67 tests:
68
69 lint:
70         lint -DLINT $(INCLUDES) $(SRC)>fluff
71
72 depend:
73         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
74
75 dclean:
76         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
77         mv -f Makefile.new $(MAKEFILE)
78
79 clean:
80         /bin/rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
81
82 errors: $(ERRC).c
83
84 $(ERRC).c: $(ERR).err
85         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
86         perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
87
88 # DO NOT DELETE THIS LINE -- make depend depends on it.