Makefile.org (89837) | Makefile.org (100928) |
---|---|
1## 2## Makefile for OpenSSL 3## 4 5VERSION= 6MAJOR= 7MINOR= 8SHLIB_VERSION_NUMBER= --- 169 unchanged lines hidden (view full) --- 178ONEDIRS=out tmp 179EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS 180WDIRS= windows 181LIBS= libcrypto.a libssl.a 182SHARED_CRYPTO=libcrypto$(SHLIB_EXT) 183SHARED_SSL=libssl$(SHLIB_EXT) 184SHARED_LIBS= 185SHARED_LIBS_LINK_EXTS= | 1## 2## Makefile for OpenSSL 3## 4 5VERSION= 6MAJOR= 7MINOR= 8SHLIB_VERSION_NUMBER= --- 169 unchanged lines hidden (view full) --- 178ONEDIRS=out tmp 179EDIRS= times doc bugs util include certs ms shlib mt demos perl sf dep VMS 180WDIRS= windows 181LIBS= libcrypto.a libssl.a 182SHARED_CRYPTO=libcrypto$(SHLIB_EXT) 183SHARED_SSL=libssl$(SHLIB_EXT) 184SHARED_LIBS= 185SHARED_LIBS_LINK_EXTS= |
186SHARED_LDFLAGS= |
|
186 187GENERAL= Makefile 188BASENAME= openssl 189NAME= $(BASENAME)-$(VERSION) 190TARFILE= $(NAME).tar 191WTARFILE= $(NAME)-win.tar 192EXHEADER= e_os.h e_os2.h 193HEADER= e_os.h --- 36 unchanged lines hidden (view full) --- 230 @for i in $(SHLIBDIRS); do \ 231 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ 232 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ 233 for j in $${tmp:-x}; do \ 234 ( set -x; rm -f lib$$i$$j ); \ 235 done; \ 236 fi; \ 237 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \ | 187 188GENERAL= Makefile 189BASENAME= openssl 190NAME= $(BASENAME)-$(VERSION) 191TARFILE= $(NAME).tar 192WTARFILE= $(NAME)-win.tar 193EXHEADER= e_os.h e_os2.h 194HEADER= e_os.h --- 36 unchanged lines hidden (view full) --- 231 @for i in $(SHLIBDIRS); do \ 232 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ 233 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ 234 for j in $${tmp:-x}; do \ 235 ( set -x; rm -f lib$$i$$j ); \ 236 done; \ 237 fi; \ 238 ( set -x; rm -f lib$$i$(SHLIB_EXT) ); \ |
239 if [ "$(PLATFORM)" = "Cygwin" ]; then \ 240 ( set -x; rm -f cyg$$i$(SHLIB_EXT) lib$$i$(SHLIB_EXT).a ); \ 241 fi; \ |
|
238 done 239 240link-shared: | 242 done 243 244link-shared: |
241 @for i in $(SHLIBDIRS); do \ 242 prev=lib$$i$(SHLIB_EXT); \ 243 if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ 244 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ | 245 @if [ -n "$(SHARED_LIBS_LINK_EXTS)" ]; then \ 246 tmp="$(SHARED_LIBS_LINK_EXTS)"; \ 247 for i in $(SHLIBDIRS); do \ 248 prev=lib$$i$(SHLIB_EXT); \ |
245 for j in $${tmp:-x}; do \ 246 ( set -x; ln -f -s $$prev lib$$i$$j ); \ 247 prev=lib$$i$$j; \ 248 done; \ | 249 for j in $${tmp:-x}; do \ 250 ( set -x; ln -f -s $$prev lib$$i$$j ); \ 251 prev=lib$$i$$j; \ 252 done; \ |
249 fi; \ 250 done | 253 done; \ 254 fi |
251 252build-shared: clean-shared do_$(SHLIB_TARGET) link-shared 253 254do_bsd-gcc-shared: do_gnu-shared 255do_linux-shared: do_gnu-shared 256do_gnu-shared: 257 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 255 256build-shared: clean-shared do_$(SHLIB_TARGET) link-shared 257 258do_bsd-gcc-shared: do_gnu-shared 259do_linux-shared: do_gnu-shared 260do_gnu-shared: 261 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
258 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 262 ( set -x; ${CC} ${SHARED_LDFLAGS} \ 263 -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
259 -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 264 -Wl,-soname=lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
265 -Wl,-Bsymbolic \ |
|
260 -Wl,--whole-archive lib$$i.a \ 261 -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \ 262 libs="$$libs -l$$i"; \ 263 done 264 265DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \ 266 collect2=`gcc -print-prog-name=collect2 2>&1` && \ 267 [ -n "$$collect2" ] && \ 268 my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \ 269 [ -n "$$my_ld" ] && \ 270 $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1 271 | 266 -Wl,--whole-archive lib$$i.a \ 267 -Wl,--no-whole-archive $$libs ${EX_LIBS} -lc ) || exit 1; \ 268 libs="$$libs -l$$i"; \ 269 done 270 271DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \ 272 collect2=`gcc -print-prog-name=collect2 2>&1` && \ 273 [ -n "$$collect2" ] && \ 274 my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \ 275 [ -n "$$my_ld" ] && \ 276 $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1 277 |
278# For Darwin AKA Mac OS/X (dyld) 279do_darwin-shared: 280 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 281 ( set -x ; ${CC} --verbose -dynamiclib -o lib$$i${SHLIB_EXT} \ 282 lib$$i.a $$libs -all_load -current_version ${SHLIB_MAJOR}.${SHLIB_MINOR} \ 283 -compatibility_version ${SHLIB_MAJOR}.`echo ${SHLIB_MINOR} | cut -d. -f1` \ 284 -install_name ${INSTALLTOP}/lib/lib$$i${SHLIB_EXT} ) || exit 1; \ 285 libs="$$libs -l`basename $$i${SHLIB_EXT} .dylib`"; \ 286 echo "" ; \ 287 done 288 289do_cygwin-shared: 290 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 291 ( set -x; ${CC} -shared -o cyg$$i.dll \ 292 -Wl,-Bsymbolic \ 293 -Wl,--whole-archive lib$$i.a \ 294 -Wl,--out-implib,lib$$i.dll.a \ 295 -Wl,--no-whole-archive $$libs ) || exit 1; \ 296 libs="$$libs -l$$i"; \ 297 done 298 |
|
272# This assumes that GNU utilities are *not* used 273do_alpha-osf1-shared: 274 if ${DETECT_GNU_LD}; then \ 275 $(MAKE) do_gnu-shared; \ 276 else \ 277 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 299# This assumes that GNU utilities are *not* used 300do_alpha-osf1-shared: 301 if ${DETECT_GNU_LD}; then \ 302 $(MAKE) do_gnu-shared; \ 303 else \ 304 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
278 ( set -x; ${CC} -shared -o lib$$i.so \ | 305 ( set -x; ${CC} ${SHARED_LDFLAGS} \ 306 -shared -o lib$$i.so \ |
279 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 280 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 281 libs="$$libs -l$$i"; \ 282 done; \ 283 fi 284 285# This assumes that GNU utilities are *not* used 286# The difference between alpha-osf1-shared and tru64-shared is the `-msym' 287# option passed to the linker. 288do_tru64-shared: 289 if ${DETECT_GNU_LD}; then \ 290 $(MAKE) do_gnu-shared; \ 291 else \ 292 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 307 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 308 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 309 libs="$$libs -l$$i"; \ 310 done; \ 311 fi 312 313# This assumes that GNU utilities are *not* used 314# The difference between alpha-osf1-shared and tru64-shared is the `-msym' 315# option passed to the linker. 316do_tru64-shared: 317 if ${DETECT_GNU_LD}; then \ 318 $(MAKE) do_gnu-shared; \ 319 else \ 320 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
293 ( set -x; ${CC} -shared -msym -o lib$$i.so \ | 321 ( set -x; ${CC} ${SHARED_LDFLAGS} \ 322 -shared -msym -o lib$$i.so \ |
294 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 295 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 296 libs="$$libs -l$$i"; \ 297 done; \ 298 fi 299 300# This assumes that GNU utilities are *not* used 301# The difference between tru64-shared and tru64-shared-rpath is the 302# -rpath ${INSTALLTOP}/lib passed to the linker. 303do_tru64-shared-rpath: 304 if ${DETECT_GNU_LD}; then \ 305 $(MAKE) do_gnu-shared; \ 306 else \ 307 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 323 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 324 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 325 libs="$$libs -l$$i"; \ 326 done; \ 327 fi 328 329# This assumes that GNU utilities are *not* used 330# The difference between tru64-shared and tru64-shared-rpath is the 331# -rpath ${INSTALLTOP}/lib passed to the linker. 332do_tru64-shared-rpath: 333 if ${DETECT_GNU_LD}; then \ 334 $(MAKE) do_gnu-shared; \ 335 else \ 336 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
308 ( set -x; ${CC} -shared -msym -o lib$$i.so \ | 337 ( set -x; ${CC} ${SHARED_LDFLAGS} \ 338 -shared -msym -o lib$$i.so \ |
309 -rpath ${INSTALLTOP}/lib \ 310 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 311 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 312 libs="$$libs -l$$i"; \ 313 done; \ 314 fi 315 316 317# This assumes that GNU utilities are *not* used 318do_solaris-shared: 319 if ${DETECT_GNU_LD}; then \ 320 $(MAKE) do_gnu-shared; \ 321 else \ 322 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 323 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ | 339 -rpath ${INSTALLTOP}/lib \ 340 -set_version "${SHLIB_VERSION_HISTORY}${SHLIB_VERSION_NUMBER}" \ 341 -all lib$$i.a -none $$libs ${EX_LIBS} -lc ) || exit 1; \ 342 libs="$$libs -l$$i"; \ 343 done; \ 344 fi 345 346 347# This assumes that GNU utilities are *not* used 348do_solaris-shared: 349 if ${DETECT_GNU_LD}; then \ 350 $(MAKE) do_gnu-shared; \ 351 else \ 352 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 353 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ |
324 set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 354 set -x; ${CC} ${SHARED_LDFLAGS} \ 355 -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
325 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 326 -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 327 libs="$$libs -l$$i"; \ 328 done; \ 329 fi 330 | 356 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 357 -z allextract lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 358 libs="$$libs -l$$i"; \ 359 done; \ 360 fi 361 |
362# OpenServer 5 native compilers used 363do_svr3-shared: 364 if ${DETECT_GNU_LD}; then \ 365 $(MAKE) do_gnu-shared; \ 366 else \ 367 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 368 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ 369 find . -name "*.o" -print > allobjs ; \ 370 OBJS= ; export OBJS ; \ 371 for obj in `ar t lib$$i.a` ; do \ 372 OBJS="$${OBJS} `grep $$obj allobjs`" ; \ 373 done ; \ 374 set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 375 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 376 $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ 377 libs="$$libs -l$$i"; \ 378 done; \ 379 fi 380 |
|
331# UnixWare 7 and OpenUNIX 8 native compilers used 332do_svr5-shared: 333 if ${DETECT_GNU_LD}; then \ 334 $(MAKE) do_gnu-shared; \ 335 else \ 336 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 337 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ 338 find . -name "*.o" -print > allobjs ; \ 339 OBJS= ; export OBJS ; \ 340 for obj in `ar t lib$$i.a` ; do \ 341 OBJS="$${OBJS} `grep $$obj allobjs`" ; \ 342 done ; \ | 381# UnixWare 7 and OpenUNIX 8 native compilers used 382do_svr5-shared: 383 if ${DETECT_GNU_LD}; then \ 384 $(MAKE) do_gnu-shared; \ 385 else \ 386 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 387 ( PATH=/usr/ccs/bin:$$PATH ; export PATH; \ 388 find . -name "*.o" -print > allobjs ; \ 389 OBJS= ; export OBJS ; \ 390 for obj in `ar t lib$$i.a` ; do \ 391 OBJS="$${OBJS} `grep $$obj allobjs`" ; \ 392 done ; \ |
343 set -x; ${CC} -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 393 set -x; ${CC} ${SHARED_LDFLAGS} \ 394 -G -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
344 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 345 $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ 346 libs="$$libs -l$$i"; \ 347 done; \ 348 fi 349 350# This assumes that GNU utilities are *not* used 351do_irix-shared: 352 if ${DETECT_GNU_LD}; then \ 353 $(MAKE) do_gnu-shared; \ 354 else \ 355 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ | 395 -h lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 396 $${OBJS} $$libs ${EX_LIBS} ) || exit 1; \ 397 libs="$$libs -l$$i"; \ 398 done; \ 399 fi 400 401# This assumes that GNU utilities are *not* used 402do_irix-shared: 403 if ${DETECT_GNU_LD}; then \ 404 $(MAKE) do_gnu-shared; \ 405 else \ 406 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ |
356 ( set -x; ${CC} -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 407 ( set -x; ${CC} ${SHARED_LDFLAGS} \ 408 -shared -o lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
357 -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 358 -all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \ 359 libs="$$libs -l$$i"; \ 360 done; \ 361 fi 362 363# This assumes that GNU utilities are *not* used 364do_hpux-shared: | 409 -Wl,-soname,lib$$i.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 410 -all lib$$i.a $$libs ${EX_LIBS} -lc) || exit 1; \ 411 libs="$$libs -l$$i"; \ 412 done; \ 413 fi 414 415# This assumes that GNU utilities are *not* used 416do_hpux-shared: |
365 libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 366 ( set -x; /usr/ccs/bin/ld +vnocompatwarnings \ | 417 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 418 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 419 +vnocompatwarnings \ |
367 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 368 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 369 -Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 370 libs="$$libs -L. -l$$i"; \ 371 done 372 373# This assumes that GNU utilities are *not* used 374do_hpux64-shared: | 420 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 421 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 422 -Fl lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 423 libs="$$libs -L. -l$$i"; \ 424 done 425 426# This assumes that GNU utilities are *not* used 427do_hpux64-shared: |
375 libs='${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 376 ( set -x; /usr/ccs/bin/ld -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ | 428 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 429 ( set -x; /usr/ccs/bin/ld ${SHARED_LDFLAGS} \ 430 -b -z -o lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ |
377 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 378 +forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 379 libs="$$libs -L. -l$$i"; \ 380 done 381 382# The following method is said to work on all platforms. Tests will 383# determine if that's how it's gong to be used. 384# This assumes that for all but GNU systems, GNU utilities are *not* used. --- 19 unchanged lines hidden (view full) --- 404# GNU systems: $(CC) 405# Tru64 Unix: $(CC) 406# Solaris: $(CC) 407# Irix: $(CC) 408# HP/UX-32bit: /usr/ccs/bin/ld 409# HP/UX-64bit: /usr/ccs/bin/ld 410# AIX: $(CC) 411ALLSYMSFLAG=-bnogc | 431 +h lib$$i.sl.${SHLIB_MAJOR}.${SHLIB_MINOR} \ 432 +forceload lib$$i.a $$libs ${EX_LIBS} -lc ) || exit 1; \ 433 libs="$$libs -L. -l$$i"; \ 434 done 435 436# The following method is said to work on all platforms. Tests will 437# determine if that's how it's gong to be used. 438# This assumes that for all but GNU systems, GNU utilities are *not* used. --- 19 unchanged lines hidden (view full) --- 458# GNU systems: $(CC) 459# Tru64 Unix: $(CC) 460# Solaris: $(CC) 461# Irix: $(CC) 462# HP/UX-32bit: /usr/ccs/bin/ld 463# HP/UX-64bit: /usr/ccs/bin/ld 464# AIX: $(CC) 465ALLSYMSFLAG=-bnogc |
412SHAREDFLAGS=-G -bE:lib$$i.exp -bM:SRE | 466SHAREDFLAGS=${SHARED_LDFLAGS} -G -bE:lib$$i.exp -bM:SRE |
413SHAREDCMD=$(CC) 414do_aix-shared: 415 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 416 ( set -x; \ 417 ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \ 418 ( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \ 419 $(SHAREDCMD) $(SHAREDFLAG) -o lib$$i.so lib$$i.o \ 420 $$libs ${EX_LIBS} ) ) \ --- 166 unchanged lines hidden (view full) --- 587 done 588 @for i in $(LIBS) ;\ 589 do \ 590 if [ -f "$$i" ]; then \ 591 ( echo installing $$i; \ 592 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 593 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ 594 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ | 467SHAREDCMD=$(CC) 468do_aix-shared: 469 libs='-L. ${SHLIBDEPS}'; for i in ${SHLIBDIRS}; do \ 470 ( set -x; \ 471 ld -r -o $$i.o $(ALLSYMSFLAG) lib$$i.a && \ 472 ( nm -Pg lib$$i.o | grep ' [BD] ' | cut -f1 -d' ' > lib$$i.exp; \ 473 $(SHAREDCMD) $(SHAREDFLAG) -o lib$$i.so lib$$i.o \ 474 $$libs ${EX_LIBS} ) ) \ --- 166 unchanged lines hidden (view full) --- 641 done 642 @for i in $(LIBS) ;\ 643 do \ 644 if [ -f "$$i" ]; then \ 645 ( echo installing $$i; \ 646 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 647 $(RANLIB) $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ 648 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ |
595 fi \ | 649 fi; \ |
596 done 597 @if [ -n "$(SHARED_LIBS)" ]; then \ 598 tmp="$(SHARED_LIBS)"; \ 599 for i in $${tmp:-x}; \ 600 do \ | 650 done 651 @if [ -n "$(SHARED_LIBS)" ]; then \ 652 tmp="$(SHARED_LIBS)"; \ 653 for i in $${tmp:-x}; \ 654 do \ |
601 if [ -f "$$i" ]; then \ | 655 if [ -f "$$i" -o -f "$$i.a" ]; then \ |
602 ( echo installing $$i; \ | 656 ( echo installing $$i; \ |
603 cp -f $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 604 chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i ); \ 605 fi \ | 657 if [ "$(PLATFORM)" != "Cygwin" ]; then \ 658 cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 659 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i; \ 660 else \ 661 c=`echo $$i | sed 's/^lib/cyg/'`; \ 662 cp $$c $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 663 chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$c; \ 664 cp $$i.a $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 665 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/lib/$$i.a; \ 666 fi ); \ 667 fi; \ |
606 done; \ 607 ( here="`pwd`"; \ 608 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 609 make -f $$here/Makefile link-shared ); \ 610 fi 611 612install_docs: 613 @$(PERL) $(TOP)/util/mkdir-p.pl \ --- 24 unchanged lines hidden --- | 668 done; \ 669 ( here="`pwd`"; \ 670 cd $(INSTALL_PREFIX)$(INSTALLTOP)/lib; \ 671 make -f $$here/Makefile link-shared ); \ 672 fi 673 674install_docs: 675 @$(PERL) $(TOP)/util/mkdir-p.pl \ --- 24 unchanged lines hidden --- |