diff options
Diffstat (limited to 'src/lib/libcrypto/pem')
| -rw-r--r-- | src/lib/libcrypto/pem/Makefile.ssl | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/src/lib/libcrypto/pem/Makefile.ssl b/src/lib/libcrypto/pem/Makefile.ssl new file mode 100644 index 0000000000..fc04a88fd9 --- /dev/null +++ b/src/lib/libcrypto/pem/Makefile.ssl | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | # | ||
| 2 | # SSLeay/crypto/pem/Makefile | ||
| 3 | # | ||
| 4 | |||
| 5 | DIR= pem | ||
| 6 | TOP= ../.. | ||
| 7 | CC= cc | ||
| 8 | INCLUDES= -I.. -I../../include | ||
| 9 | CFLAG=-g | ||
| 10 | INSTALLTOP=/usr/local/ssl | ||
| 11 | MAKE= make -f Makefile.ssl | ||
| 12 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
| 13 | MAKEFILE= Makefile.ssl | ||
| 14 | AR= ar r | ||
| 15 | |||
| 16 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
| 17 | |||
| 18 | ERR=pem | ||
| 19 | ERRC=pem_err | ||
| 20 | GENERAL=Makefile | ||
| 21 | TEST= | ||
| 22 | APPS= | ||
| 23 | |||
| 24 | CTX_SIZE= ctx_size | ||
| 25 | |||
| 26 | LIB=$(TOP)/libcrypto.a | ||
| 27 | LIBSRC= pem_sign.c pem_seal.c pem_info.c pem_lib.c pem_all.c $(ERRC).c | ||
| 28 | |||
| 29 | LIBOBJ= pem_sign.o pem_seal.o pem_info.o pem_lib.o pem_all.o $(ERRC).o | ||
| 30 | |||
| 31 | SRC= $(LIBSRC) | ||
| 32 | |||
| 33 | EXHEADER= pem.h | ||
| 34 | HEADER= $(EXHEADER) | ||
| 35 | |||
| 36 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
| 37 | |||
| 38 | top: | ||
| 39 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
| 40 | |||
| 41 | all: pem.h lib | ||
| 42 | |||
| 43 | pem.h: $(CTX_SIZE) | ||
| 44 | ./$(CTX_SIZE) <pem.org >pem.new | ||
| 45 | if [ -f pem.h ]; then mv -f pem.h pem.old; fi | ||
| 46 | mv -f pem.new pem.h | ||
| 47 | |||
| 48 | $(CTX_SIZE): $(CTX_SIZE).o | ||
| 49 | $(CC) $(CFLAGS) -o $(CTX_SIZE) $(CTX_SIZE).o | ||
| 50 | |||
| 51 | lib: $(LIBOBJ) | ||
| 52 | $(AR) $(LIB) $(LIBOBJ) | ||
| 53 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
| 54 | @touch lib | ||
| 55 | |||
| 56 | files: | ||
| 57 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
| 58 | |||
| 59 | links: | ||
| 60 | /bin/rm -f Makefile | ||
| 61 | $(TOP)/util/point.sh Makefile.ssl Makefile ; | ||
| 62 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
| 63 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
| 64 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
| 65 | |||
| 66 | install: | ||
| 67 | @for i in $(EXHEADER) ; \ | ||
| 68 | do \ | ||
| 69 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
| 70 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
| 71 | done; | ||
| 72 | |||
| 73 | tags: | ||
| 74 | ctags $(SRC) | ||
| 75 | |||
| 76 | tests: | ||
| 77 | |||
| 78 | lint: | ||
| 79 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
| 80 | |||
| 81 | depend: | ||
| 82 | $(MAKEDEPEND) $(INCLUDES) $(CTX_SIZE).c $(LIBSRC) | ||
| 83 | |||
| 84 | dclean: | ||
| 85 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
| 86 | mv -f Makefile.new $(MAKEFILE) | ||
| 87 | |||
| 88 | clean: | ||
| 89 | /bin/rm -f $(CTX_SIZE) *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
| 90 | |||
| 91 | errors: | ||
| 92 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).org # SPECIAL CASE .org | ||
| 93 | perl $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h | ||
| 94 | perl ../err/err_genc.pl -s $(ERR).h $(ERRC).c | ||
| 95 | |||
| 96 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
