summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-05-14 20:06:32 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-05-14 20:06:32 (GMT)
commit3bcf2e088e8cf8a908662af8e3f2611b259517d2 (patch)
tree786cd0f1ecb15ac25aae34a0afdc504519955a62
parentf9dcfa006f14099d4ae0fd37d08215dd7d210e0d (diff)
downloadblt-3bcf2e088e8cf8a908662af8e3f2611b259517d2.zip
blt-3bcf2e088e8cf8a908662af8e3f2611b259517d2.tar.gz
blt-3bcf2e088e8cf8a908662af8e3f2611b259517d2.tar.bz2
build openssl for linux
-rw-r--r--ds9/unix/Makefile.in3
-rw-r--r--unix/Makefile.in41
2 files changed, 36 insertions, 8 deletions
diff --git a/ds9/unix/Makefile.in b/ds9/unix/Makefile.in
index d81e17b..e18130c 100644
--- a/ds9/unix/Makefile.in
+++ b/ds9/unix/Makefile.in
@@ -177,7 +177,8 @@ ds9base : $(OBJS) $(LLIBS)
$(OBJS) \
$(LLIBS) \
$(TK_LIBS) \
- $(LIBS)
+ $(LIBS) \
+ -L $(prefix)/openssl -lssl -lcrypto
ds9.zip : $(PREQS)
zip -ru ds9.zip $(APPDIR)
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 1a268ee..94b68b1 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -15,6 +15,8 @@ TKFLAGS = @TKFLAGS@
TLSFLAGS = @TLSFLAGS@
JOBS = @CORES@
+TLSFLAGS ="CFLAGS=-DNO_IDEA=1 -DNO_RC5=1" --with-ssl-dir=$(prefix)/openssl
+
include ./make.include
WITHTCL = --with-tcl=$(prefix)/tcl$(TCL_VERSION)/unix
@@ -23,9 +25,10 @@ CACHE = --config-cache --cache-file=$(prefix)/config.cache
#--------------------------build
-.PHONY : saods9 tcl tk
+.PHONY : saods9 tcl tk openssl
saods9 : dirs tcl tk \
+ openssl \
tcliis tclsignal \
tclzipfs tls tclxml xpa \
tkblt tktable tkimg \
@@ -42,7 +45,7 @@ tcl$(TCL_VERSION)/unix/Makefile :
@echo "*** $@ ***"
cd tcl$(TCL_VERSION)/unix; \
./configure \
- --prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \
+ $(PREFIX) \
--disable-shared --enable-symbols \
$(CACHE)
@@ -57,7 +60,7 @@ tk$(TCL_VERSION)/unix/Makefile :
cd tk$(TCL_VERSION)/unix; \
./configure \
$(TKFLAGS) \
- --prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir) \
+ $(PREFIX) \
--disable-shared --enable-symbols \
$(CACHE)
@@ -95,9 +98,22 @@ tclsignal/Makefile :
$(STD) \
$(CACHE)
+#--------------------------openssl
+
+openssl : openssl/Makefile
+ @echo ""
+ @echo "*** $@ ***"
+ $(MAKE) -C openssl -j $(JOBS)
+
+openssl/Makefile:
+ @echo ""
+ @echo "*** $@ ***"
+ cd openssl; \
+ ./config --prefix=$(prefix)
+
#--------------------------clean
-.PHONY : tclclean tkclean osclean tclzipfsclean tclsignalclean
+.PHONY : tclclean tkclean osclean tclzipfsclean tclsignalclean opensslclean
tclclean :
@echo ""
@@ -109,7 +125,7 @@ tkclean :
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/unix clean
-osclean : tclzipfsclean tclsignalclean
+osclean : tclzipfsclean tclsignalclean opensslclean
tclzipfsclean:
@echo ""
@@ -121,10 +137,15 @@ tclsignalclean :
@echo "*** $@ ***"
$(MAKE) -C tclsignal clean
+opensslclean:
+ @echo ""
+ @echo "*** $@ ***"
+ $(MAKE) -C openssl clean
+
#--------------------------distclean
.PHONY : tcldistclean tkdistclean
-.PHONY : osdistclean tclzipfsdistclean tclsignaldistclean
+.PHONY : osdistclean tclzipfsdistclean tclsignaldistclean openssldistclean
tcldistclean :
@echo ""
@@ -136,7 +157,7 @@ tkdistclean :
@echo "*** $@ ***"
$(MAKE) -C tk$(TCL_VERSION)/unix distclean
-osdistclean : tclzipfsdistclean tclsignaldistclean
+osdistclean : tclzipfsdistclean tclsignaldistclean openssldistclean
tclzipfsdistclean:
@echo ""
@@ -150,6 +171,12 @@ tclsignaldistclean :
$(MAKE) -C tclsignal distclean
rm -f tclsignal/tclsignalConfig.sh
+openssldistclean :
+ @echo ""
+ @echo "*** $@ ***"
+ $(MAKE) -C openssl clean
+ rm -f openssl/Makefile
+
#--------------------------distribution
.PHONY : dist