2 # Top-level Makefile for clxutils. Allows build or clean
3 # of all directories in one swoop.
7 SUBDIRS= clAppUtils anchorTest caVerify certChain certInCrl certTime certcrl \
8 certLabelTest certSerialEncodeTest certsFromDb cgConstruct \
9 cgVerify clTool cmstool \
10 dotMacArchive dotMacTool extendAttrTest extendAttrTool \
11 extenGrab extenTest extenTestTp extractCertFields findCert \
12 idTool kcImport kcExport kcTime kcTool keyFromCert \
13 newCmsTool ocspdTool ocspTool pemtool \
14 parseCert parseCrl pemtool secTime secTrustTime \
15 signerAndSubj signerAndSubjSsl \
16 signerAndSubjTp smimePolicy sslAlert sslAuth sslBench sslCipher \
17 sslEcdsa sslHandshakeTime sslProt \
18 sslServer sslSession sslSubjName sslViewer \
19 sysIdTool threadTest trustAnchors trustApps unBER \
21 # krbtool removed pending new kerb changes
24 # note the p12 tests removed - I really want p12Reencode back in...p12 we can do without
25 # extractCertFields idTool kcImport kcExport kcTime kcTool keyFromCert pemtool p12 p12Reencode \
27 INSTALLDIR=$(DSTROOT)/usr/local/bin
29 # default SRCROOT for clean target
30 SRCROOT ?= $(shell pwd)
33 # The "if [[ -a $$i ]]" allows use of this Makefile on a fragment of
34 # clxutils, e.g., the SslExamples package built by buildSsl.
37 @foreach i in $(SUBDIRS); \
38 if [[ -a $$i ]] then; \
39 echo "=== Making $$i ==="; \
49 make "SPHINX=-DSPHINX"
51 # architecture options
54 make "DEBUG_CFLAGS=-arch x86_64" "CMDLINE_LDFLAGS=-arch x86_64"
57 make "DEBUG_CFLAGS=-arch x86_64 -arch i386" "CMDLINE_LDFLAGS=-arch x86_64 -arch i386"
60 make "DEBUG_CFLAGS=-arch i386" "CMDLINE_LDFLAGS=-arch i386"
63 @foreach i in $(SUBDIRS); \
64 if [[ -a $$i ]] then; \
65 echo "=== Installing $$i ==="; \
67 make install "DSTROOT=$(DSTROOT)" "SYMROOT=$(SYMROOT)" \
68 "OBJROOT=$(OBJROOT)" || exit 1; \
72 install -d -m 0755 $(INSTALLDIR)
73 install -p -m 0755 cltpdvt $(INSTALLDIR)
74 echo "** BUILD SUCCEEDED **"
76 # this module doesn't need to install any headers
83 @foreach i in $(SUBDIRS); \
84 if [[ -a $$i ]] then; \
85 echo "=== Cleaning $$i ==="; \
87 make clean "DSTROOT=$(DSTROOT)" "SYMROOT=$(SYMROOT)" \
88 "OBJROOT=$(OBJROOT)" "SRCROOT=$(SRCROOT)/$$i" \