mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
45502bfe19
This takes us away from the idea that we know exactly how our static libraries are going to get used. Instead, we make them available to build shareable things with, be it other shared libraries or DSOs. On the other hand, we also have greater control of when the shared library cflags. They will never be used with object files meant got binaries, such as apps/openssl or test/test*. With unified, we take this a bit further and prepare for having to deal with extra cflags specifically to be used with DSOs (dynamic engines), libraries and binaries (applications). Reviewed-by: Rich Salz <rsalz@openssl.org>
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
#
|
|
# OpenSSL/crypto/pkcs12/Makefile
|
|
#
|
|
|
|
DIR= pkcs12
|
|
TOP= ../..
|
|
CC= cc
|
|
INCLUDES= -I.. -I$(TOP) -I../../include
|
|
CFLAG=-g
|
|
MAKEFILE= Makefile
|
|
AR= ar r
|
|
|
|
CFLAGS= $(INCLUDES) $(CFLAG) $(SHARED_CFLAG)
|
|
|
|
GENERAL=Makefile
|
|
|
|
LIB=$(TOP)/libcrypto.a
|
|
LIBSRC= p12_add.c p12_asn.c p12_attr.c p12_crpt.c p12_crt.c p12_decr.c \
|
|
p12_init.c p12_key.c p12_kiss.c p12_mutl.c p12_sbag.c \
|
|
p12_utl.c p12_npas.c pk12err.c p12_p8d.c p12_p8e.c
|
|
LIBOBJ= p12_add.o p12_asn.o p12_attr.o p12_crpt.o p12_crt.o p12_decr.o \
|
|
p12_init.o p12_key.o p12_kiss.o p12_mutl.o p12_sbag.o \
|
|
p12_utl.o p12_npas.o pk12err.o p12_p8d.o p12_p8e.o
|
|
|
|
SRC= $(LIBSRC)
|
|
|
|
HEADER= p12_lcl.h
|
|
|
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
|
|
|
top:
|
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
|
|
|
test:
|
|
|
|
all: lib
|
|
|
|
lib: $(LIBOBJ)
|
|
$(AR) $(LIB) $(LIBOBJ)
|
|
$(RANLIB) $(LIB) || echo Never mind.
|
|
@touch lib
|
|
|
|
files:
|
|
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
|
|
|
|
depend:
|
|
$(TOP)/util/domd $(CFLAG) $(INCLUDES) -- $(PROGS) $(LIBSRC)
|
|
|
|
clean:
|
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|