General source tree makefile cleanups: Made `making xxx in yyy...' display
[openssl.git] / crypto / x509 / Makefile.ssl
1 #
2 # SSLeay/crypto/x509/Makefile
3 #
4
5 DIR=    x509
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=x509
19 ERRC=x509_err
20 GENERAL=Makefile README
21 TEST=
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= x509_def.c x509_d2.c x509_r2x.c x509_cmp.c \
26         x509_obj.c x509_req.c x509_vfy.c \
27         x509_set.c x509rset.c $(ERRC).c \
28         x509name.c x509_v3.c x509_ext.c x509pack.c \
29         x509type.c x509_lu.c x_all.c x509_txt.c \
30         by_file.c by_dir.c \
31         v3_net.c v3_x509.c
32 LIBOBJ= x509_def.o x509_d2.o x509_r2x.o x509_cmp.o \
33         x509_obj.o x509_req.o x509_vfy.o \
34         x509_set.o x509rset.o $(ERRC).o \
35         x509name.o x509_v3.o x509_ext.o x509pack.o \
36         x509type.o x509_lu.o x_all.o x509_txt.o \
37         by_file.o by_dir.o \
38         v3_net.o v3_x509.o
39
40 SRC= $(LIBSRC)
41
42 EXHEADER= x509.h x509_vfy.h
43 HEADER= $(EXHEADER)
44
45 ALL=    $(GENERAL) $(SRC) $(HEADER)
46
47 top:
48         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
49
50 all:    lib
51
52 lib:    $(LIBOBJ)
53         $(AR) $(LIB) $(LIBOBJ)
54         sh $(TOP)/util/ranlib.sh $(LIB)
55         @touch lib
56
57 files:
58         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
59
60 links:
61         @$(TOP)/util/point.sh Makefile.ssl Makefile
62         @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
63         @$(TOP)/util/mklink.sh ../../test $(TEST)
64         @$(TOP)/util/mklink.sh ../../apps $(APPS)
65
66 install:
67         @for i in $(EXHEADER) ; \
68         do  \
69         (cp $$i $(INSTALLTOP)/include/$$i; \
70         chmod 644 $(INSTALLTOP)/include/$$i ); \
71         done;
72
73 tags:
74         ctags $(SRC)
75
76 tests:
77
78 lint:
79         lint -DLINT $(INCLUDES) $(SRC)>fluff
80
81 depend:
82         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
83
84 dclean:
85         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
86         mv -f Makefile.new $(MAKEFILE)
87
88 clean:
89         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
90
91 errors: $(ERRC).c
92
93 $(ERRC).c: $(ERR).err
94         perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
95         perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
96
97 # DO NOT DELETE THIS LINE -- make depend depends on it.