Always build library object files with shared library cflags
[openssl.git] / crypto / ts / Makefile.in
1 #
2 #
3
4 DIR=    ts
5 TOP=    ../..
6 CC=     cc
7 INCLUDES= -I.. -I../../include
8 CFLAG = -g
9 DESTDIR=
10 OPENSSLDIR=     /usr/local/ssl
11 INSTALLTOP=/usr/local/ssl
12 AR=             ar r
13
14 PLIB_LDFLAG=
15 EX_LIBS=
16
17 CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
18
19 GENERAL= Makefile
20
21 LIB=$(TOP)/libcrypto.a
22 LIBSRC= ts_err.c ts_req_utils.c ts_req_print.c ts_rsp_utils.c ts_rsp_print.c \
23         ts_rsp_sign.c ts_rsp_verify.c ts_verify_ctx.c ts_lib.c ts_conf.c \
24         ts_asn1.c
25 LIBOBJ= ts_err.o ts_req_utils.o ts_req_print.o ts_rsp_utils.o ts_rsp_print.o \
26         ts_rsp_sign.o ts_rsp_verify.o ts_verify_ctx.o ts_lib.o ts_conf.o \
27         ts_asn1.o
28
29 SRC= $(LIBSRC)
30
31 HEADER= 
32
33 ALL=    $(GENERAL) $(SRC) $(HEADER)
34
35 top:
36         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37
38 test:
39
40 all:    lib
41
42 lib:    $(LIBOBJ)
43         $(AR) $(LIB) $(LIBOBJ)
44         $(RANLIB) $(LIB) || echo Never mind.
45         @touch lib
46
47 files:
48         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
49
50 depend:
51         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(LIBSRC)
52
53 clean:
54         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff enc dec sign verify
55
56 # DO NOT DELETE THIS LINE -- make depend depends on it.