mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
92 lines
1.8 KiB
Makefile
92 lines
1.8 KiB
Makefile
|
#
|
||
|
# SSLeay/crypto/asn1/Makefile
|
||
|
#
|
||
|
|
||
|
DIR= pkcs12
|
||
|
TOP= ../..
|
||
|
CC= cc
|
||
|
INCLUDES= -I.. -I../../include
|
||
|
CFLAG=-g
|
||
|
INSTALLTOP=/usr/local/ssl
|
||
|
MAKE= make -f Makefile.ssl
|
||
|
MAKEDEPEND= $(TOP)/util/domd $(TOP)
|
||
|
MAKEFILE= Makefile.ssl
|
||
|
AR= ar r
|
||
|
|
||
|
CFLAGS= $(INCLUDES) $(CFLAG)
|
||
|
|
||
|
ERR=pkcs12
|
||
|
ERRC=pk12err
|
||
|
GENERAL=Makefile
|
||
|
TEST=
|
||
|
APPS=
|
||
|
|
||
|
LIB=$(TOP)/libcrypto.a
|
||
|
LIBSRC= p12_add.c p12_attr.c p12_bags.c p12_crpt.c p12_crt.c p12_decr.c \
|
||
|
p12_init.c p12_key.c p12_kiss.c p12_lib.c p12_mac.c p12_mutl.c\
|
||
|
p12_sbag.c p12_utl.c pk12err.c
|
||
|
LIBOBJ= p12_add.o p12_attr.o p12_bags.o p12_crpt.o p12_crt.o p12_decr.o \
|
||
|
p12_init.o p12_key.o p12_kiss.o p12_lib.o p12_mac.o p12_mutl.o\
|
||
|
p12_sbag.o p12_utl.o pk12err.o
|
||
|
|
||
|
SRC= $(LIBSRC)
|
||
|
|
||
|
EXHEADER= pkcs12.h
|
||
|
HEADER= $(EXHEADER)
|
||
|
|
||
|
ALL= $(GENERAL) $(SRC) $(HEADER)
|
||
|
|
||
|
top:
|
||
|
(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
|
||
|
|
||
|
test:
|
||
|
|
||
|
all: lib
|
||
|
|
||
|
lib: $(LIBOBJ)
|
||
|
$(AR) $(LIB) $(LIBOBJ)
|
||
|
sh $(TOP)/util/ranlib.sh $(LIB)
|
||
|
@touch lib
|
||
|
|
||
|
files:
|
||
|
perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
|
||
|
|
||
|
links:
|
||
|
@$(TOP)/util/point.sh Makefile.ssl Makefile
|
||
|
@$(TOP)/util/mklink.sh ../../include $(EXHEADER)
|
||
|
@$(TOP)/util/mklink.sh ../../test $(TEST)
|
||
|
@$(TOP)/util/mklink.sh ../../apps $(APPS)
|
||
|
|
||
|
install:
|
||
|
@for i in $(EXHEADER) ; \
|
||
|
do \
|
||
|
(cp $$i $(INSTALLTOP)/include/$$i; \
|
||
|
chmod 644 $(INSTALLTOP)/include/$$i ); \
|
||
|
done;
|
||
|
|
||
|
tags:
|
||
|
ctags $(SRC)
|
||
|
|
||
|
tests:
|
||
|
|
||
|
lint:
|
||
|
lint -DLINT $(INCLUDES) $(SRC)>fluff
|
||
|
|
||
|
depend:
|
||
|
$(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
|
||
|
|
||
|
dclean:
|
||
|
perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
|
||
|
mv -f Makefile.new $(MAKEFILE)
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
|
||
|
|
||
|
errors: $(ERRC).c
|
||
|
|
||
|
$(ERRC).c: $(ERR).err
|
||
|
perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
|
||
|
perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c
|
||
|
|
||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|