b6c44e7dc7cb9c0fd8897e88eafad35d51dbc407
[openssl.git] / crypto / asn1 / Makefile.in
1 #
2 # OpenSSL/crypto/asn1/Makefile
3 #
4
5 DIR=    asn1
6 TOP=    ../..
7 CC=     cc
8 INCLUDES= -I.. -I$(TOP) -I../../include
9 CFLAG=-g
10 MAKEFILE=       Makefile
11 AR=             ar r
12
13 CFLAGS= $(INCLUDES) $(CFLAG)
14
15 GENERAL=Makefile README
16
17 LIB=$(TOP)/libcrypto.a
18 LIBSRC= a_object.c a_bitstr.c a_utctm.c a_gentm.c a_time.c a_int.c a_octet.c \
19         a_print.c a_type.c a_dup.c a_d2i_fp.c a_i2d_fp.c \
20         a_utf8.c a_sign.c a_digest.c a_verify.c a_mbstr.c a_strex.c \
21         x_algor.c x_val.c x_pubkey.c x_sig.c x_bignum.c \
22         x_long.c x_info.c x_spki.c nsseq.c \
23         d2i_pu.c d2i_pr.c i2d_pu.c i2d_pr.c\
24         t_pkey.c t_spki.c t_bitst.c \
25         tasn_new.c tasn_fre.c tasn_enc.c tasn_dec.c tasn_utl.c tasn_typ.c \
26         tasn_prn.c tasn_scn.c ameth_lib.c \
27         f_int.c f_string.c n_pkey.c \
28         x_pkey.c bio_asn1.c bio_ndef.c asn_mime.c \
29         asn1_gen.c asn1_par.c asn1_lib.c asn1_err.c a_strnid.c \
30         evp_asn1.c asn_pack.c p5_pbe.c p5_pbev2.c p5_scrypt.c p8_pkey.c \
31     asn_moid.c asn_mstbl.c
32 LIBOBJ= a_object.o a_bitstr.o a_utctm.o a_gentm.o a_time.o a_int.o a_octet.o \
33         a_print.o a_type.o a_dup.o a_d2i_fp.o a_i2d_fp.o \
34         a_utf8.o a_sign.o a_digest.o a_verify.o a_mbstr.o a_strex.o \
35         x_algor.o x_val.o x_pubkey.o x_sig.o x_bignum.o \
36         x_long.o x_info.o x_spki.o nsseq.o \
37         d2i_pu.o d2i_pr.o i2d_pu.o i2d_pr.o \
38         t_pkey.o t_spki.o t_bitst.o \
39         tasn_new.o tasn_fre.o tasn_enc.o tasn_dec.o tasn_utl.o tasn_typ.o \
40         tasn_prn.o tasn_scn.o ameth_lib.o \
41         f_int.o f_string.o n_pkey.o \
42         x_pkey.o bio_asn1.o bio_ndef.o asn_mime.o \
43         asn1_gen.o asn1_par.o asn1_lib.o asn1_err.o a_strnid.o \
44         evp_asn1.o asn_pack.o p5_pbe.o p5_pbev2.o p5_scrypt.o p8_pkey.o \
45         asn_moid.o asn_mstbl.o
46
47 SRC= $(LIBSRC)
48
49 HEADER= asn1_locl.h
50
51 ALL=    $(GENERAL) $(SRC) $(HEADER)
52
53 top:
54         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
55
56 test:   test.c
57         cc -g -I../../include -c test.c
58         cc -g -I../../include -o test test.o -L../.. -lcrypto
59
60 pk:     pk.c
61         cc -g -I../../include -c pk.c
62         cc -g -I../../include -o pk pk.o -L../.. -lcrypto
63
64 all:    lib
65
66 lib:    $(LIBOBJ)
67         $(AR) $(LIB) $(LIBOBJ)
68         $(RANLIB) $(LIB) || echo Never mind.
69         @touch lib
70
71 files:
72         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
73
74 depend:
75         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
76
77 clean:
78         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
79
80
81 # DO NOT DELETE THIS LINE -- make depend depends on it.