Always build library object files with shared library cflags
[openssl.git] / crypto / pkcs12 / Makefile.in
1 #
2 # OpenSSL/crypto/pkcs12/Makefile
3 #
4
5 DIR=    pkcs12
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) $(SHARED_CFLAG)
14
15 GENERAL=Makefile
16
17 LIB=$(TOP)/libcrypto.a
18 LIBSRC= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c \
19         p12_init.c p12_key.c p12_kiss.c p12_mutl.c p12_sbag.c \
20         p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
21 LIBOBJ= p12_add.o p12_asn.o p12_attr.o p12_crpt.o p12_crt.o p12_decr.o \
22         p12_init.o p12_key.o p12_kiss.o p12_mutl.o p12_sbag.o \
23         p12_utl.o p12_npas.o pk12err.o p12_p8d.o p12_p8e.o
24
25 SRC= $(LIBSRC)
26
27 HEADER= p12_lcl.h
28
29 ALL=    $(GENERAL) $(SRC) $(HEADER)
30
31 top:
32         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
33
34 test:
35
36 all:    lib
37
38 lib:    $(LIBOBJ)
39         $(AR) $(LIB) $(LIBOBJ)
40         $(RANLIB) $(LIB) || echo Never mind.
41         @touch lib
42
43 files:
44         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
45
46 depend:
47         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
48
49 clean:
50         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
51
52 # DO NOT DELETE THIS LINE -- make depend depends on it.