File indexing completed on 2024-05-05 16:08:30

0001 ##
0002 ##  Makefile for building and driving the CA cert extraction
0003 ##  Copyright (c) 1998 Ralf S. Engelschall, All Rights Reserved. 
0004 ##
0005 
0006 V=1.0
0007 
0008 SSLEAY_INC=/sw/pkg/ssleay/include 
0009 SSLEAY_LIB=/sw/pkg/ssleay/lib 
0010 
0011 CC=cc
0012 CFLAGS=-pipe -O -g -ggdb3 -Wall -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
0013 LDFLAGS=-g -ggdb3
0014 
0015 all: extract
0016 
0017 extract: cert_extract
0018         ./cert_extract cert7.db
0019         ./cert_bundle cert7.db cert.index ca-cert-bundle.pem
0020 
0021 cert_extract.o: cert_extract.c
0022         $(CC) $(CFLAGS) -I$(SSLEAY_INC) -o cert_extract.o -c cert_extract.c
0023 
0024 cert_extract: cert_extract.o
0025         $(CC) $(LDFLAGS) -ocert_extract cert_extract.o -L$(SSLEAY_LIB) -lcrypto -ldb1
0026 
0027 clean:
0028         -rm -f cert_extract.o
0029         -rm -f cert_extract
0030         -rm -f core *.core 
0031 
0032 distclean: clean
0033         -rm -f cert.*.der cert.index
0034 
0035 dist: distclean
0036         gtar --no-recursion -cvf - `find * -depth -print | sort` |\
0037     tardy --user_number=1000  --user_name=rse \
0038           --group_number=1000 --group_name=en \
0039           --prefix=certbundle-$(V) - |\
0040     gzip --best >/tmp/certbundle-$(V).tar.gz && \
0041         mv /tmp/certbundle-$(V).tar.gz ..
0042         ls -l ../certbundle-$(V).tar.gz
0043