Always build library object files with shared library cflags
[openssl.git] / crypto / conf / Makefile.in
1 #
2 # OpenSSL/crypto/conf/Makefile
3 #
4
5 DIR=    conf
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= conf_err.c conf_lib.c conf_api.c conf_def.c conf_mod.c \
19          conf_mall.c conf_sap.c
20
21 LIBOBJ= conf_err.o conf_lib.o conf_api.o conf_def.o conf_mod.o \
22         conf_mall.o conf_sap.o
23
24 SRC= $(LIBSRC)
25
26 HEADER= conf_def.h
27
28 ALL=    $(GENERAL) $(SRC) $(HEADER)
29
30 top:
31         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
32
33 all:    lib
34
35 lib:    $(LIBOBJ)
36         $(AR) $(LIB) $(LIBOBJ)
37         $(RANLIB) $(LIB) || echo Never mind.
38         @touch lib
39
40 files:
41         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
42
43 depend:
44         $(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(LIBSRC)
45
46 clean:
47         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
48
49 # DO NOT DELETE THIS LINE -- make depend depends on it.