mirror of
https://github.com/AdaCore/PolyORB.git
synced 2026-02-12 13:01:15 -08:00
(Makefile.in): Add substitution for @OPENSSL@ (examples/corba/secure_echo/Makefile.local): Use $(OPENSSL) to call openssl(1) as it might not be on the PATH. Also reorganize slightly the generation of test_targets in Makefile so that a Makefile.local can disable its test (by unsetting test_target). For L217-011 Subversion-branch: /trunk/polyorb Subversion-revision: 185897
30 lines
838 B
Makefile
30 lines
838 B
Makefile
ifeq ($(HAVE_SSL),yes)
|
|
${current_dir}echo.idl-stamp: idlac_flags := -d
|
|
${test_target}: ${current_dir}echo.idl-stamp
|
|
|
|
ssl_conf_dir := ${top_srcdir}/${current_dir}
|
|
|
|
${current_dir}echo.idl-stamp: ${current_dir}polyorb.crt
|
|
|
|
${current_dir}polyorb.crt: force
|
|
cd `dirname $@`; \
|
|
mkdir -p ca; \
|
|
touch ca/index.txt; \
|
|
echo "01" > ca/serial; \
|
|
$(OPENSSL) genrsa -out root.key 2048; \
|
|
$(OPENSSL) req -new -x509 -key root.key -out root.crt \
|
|
-config ${ssl_conf_dir}ca_openssl.conf; \
|
|
$(OPENSSL) genrsa -out polyorb.key 2048; \
|
|
$(OPENSSL) req -new -key polyorb.key -out polyorb.req \
|
|
-config ${ssl_conf_dir}polyorb_openssl.conf; \
|
|
$(OPENSSL) x509 -days 365 \
|
|
-CA root.crt \
|
|
-CAkey root.key \
|
|
-CAserial ca/serial \
|
|
-in polyorb.req -req \
|
|
-out polyorb.crt
|
|
|
|
else
|
|
test_target :=
|
|
endif
|