mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
36975e8e7e
Replace = with += in CFLAGS-xxx.c and CPPFLAGS-xxx.c to allow Makefile under sysdeps to define CFLAGS-xx.c and CPPFLAGS-xxx.c. * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=. (CFLAGS-argp-parse.c): Likewise. (CFLAGS-argp-fmtstream.c): Likewise. * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise. (CPPFLAGS-sha512-crypt.c): Likewise. (CPPFLAGS-md5-crypt.c): Likewise. * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise. (CFLAGS-stack_chk_fail_local.c): Likewise. (CFLAGS-backtrace.c): Likewise. (CFLAGS-sprintf_chk.c): Likewise. (CFLAGS-snprintf_chk.c): Likewise. (CFLAGS-vsprintf_chk.c): Likewise. (CFLAGS-vsnprintf_chk.c): Likewise. (CFLAGS-asprintf_chk.c): Likewise. (CFLAGS-vasprintf_chk.c): Likewise. (CFLAGS-obprintf_chk.c): Likewise. (CFLAGS-dprintf_chk.c): Likewise. (CFLAGS-vdprintf_chk.c): Likewise. (CFLAGS-printf_chk.c): Likewise. (CFLAGS-fprintf_chk.c): Likewise. (CFLAGS-vprintf_chk.c): Likewise. (CFLAGS-vfprintf_chk.c): Likewise. (CFLAGS-gets_chk.c): Likewise. (CFLAGS-fgets_chk.c): Likewise. (CFLAGS-fgets_u_chk.c): Likewise. (CFLAGS-fread_chk.c): Likewise. (CFLAGS-fread_u_chk.c): Likewise. (CFLAGS-swprintf_chk.c): Likewise. (CFLAGS-vswprintf_chk.c): Likewise. (CFLAGS-wprintf_chk.c): Likewise. (CFLAGS-fwprintf_chk.c): Likewise. (CFLAGS-vwprintf_chk.c): Likewise. (CFLAGS-vfwprintf_chk.c): Likewise. (CFLAGS-fgetws_chk.c): Likewise. (CFLAGS-fgetws_u_chk.c): Likewise. (CFLAGS-read_chk.c): Likewise. (CFLAGS-pread_chk.c): Likewise. (CFLAGS-pread64_chk.c): Likewise. (CFLAGS-recv_chk.c): Likewise. (CFLAGS-recvfrom_chk.c): Likewise. (CFLAGS-tst-longjmp_chk.c): Likewise. (CPPFLAGS-tst-longjmp_chk.c): Likewise. (CFLAGS-tst-longjmp_chk2.c): Likewise. (CPPFLAGS-tst-longjmp_chk2.c): Likewise. (CFLAGS-tst-longjmp_chk3.c): Likewise. (CPPFLAGS-tst-longjmp_chk3.c): Likewise. (CFLAGS-tst-chk1.c): Likewise. (CFLAGS-tst-chk2.c): Likewise. (CFLAGS-tst-chk3.c): Likewise. (CFLAGS-tst-chk4.cc): Likewise. (CFLAGS-tst-chk5.cc): Likewise. (CFLAGS-tst-chk6.cc): Likewise. (CFLAGS-tst-lfschk1.c): Likewise. (CFLAGS-tst-lfschk2.c): Likewise. (CFLAGS-tst-lfschk3.c): Likewise. (CFLAGS-tst-lfschk4.cc): Likewise. (CFLAGS-tst-lfschk5.cc): Likewise. (CFLAGS-tst-lfschk6.cc): Likewise. (CFLAGS-tst-ssp-1.c): Likewise. * dirent/Makefile (CFLAGS-scandir.c): Likewise. (CFLAGS-scandir64.c): Likewise. (CFLAGS-scandir-tail.c): Likewise. (CFLAGS-scandir64-tail.c): Likewise. * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise. (CFLAGS-dl-tunables.c): Likewise. (CFLAGS-dl-runtime.c): Likewise. (CFLAGS-dl-lookup.c): Likewise. (CFLAGS-dl-iterate-phdr.c): Likewise. (CFLAGS-vismain.c): Likewise. (CFLAGS-tst-linkall-static.c): Likewise. (CFLAGS-tst-linkall-static.c): Likewise. (CPPFLAGS-dl-load.c): Likewise. (CFLAGS-ldconfig.c): Likewise. (CFLAGS-dl-cache.c): Likewise. (CFLAGS-cache.c): Likewise. (CFLAGS-rtld.c): Likewise. (CFLAGS-multiload.c): Likewise. (CFLAGS-filtmod1.c): Likewise. (CFLAGS-tst-align.c): Likewise. (CFLAGS-tst-align2.c): Likewise. (CFLAGS-tst-alignmod.c): Likewise. (CFLAGS-tst-alignmod2.c): Likewise. (CPPFLAGS-tst-execstack.c): Likewise. (CFLAGS-tst-ptrguard1-static.c): Likewise. (CFLAGS-tst-latepthreadmod.c): Likewise. * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise. (CFLAGS-getgrnam_r.c): Likewise. (CFLAGS-getgrent_r.c): Likewise. (CFLAGS-getgrent.c): Likewise. (CFLAGS-fgetgrent.c): Likewise. (CFLAGS-fgetgrent_r.c): Likewise. (CFLAGS-putgrent.c): Likewise. (CFLAGS-initgroups.c): Likewise. (CFLAGS-getgrgid.c): Likewise. * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise. (CFLAGS-getsgent.c): Likewise. (CFLAGS-fgetsgent.c): Likewise. (CFLAGS-fgetsgent_r.c): Likewise. (CFLAGS-putsgent.c): Likewise. (CFLAGS-getsgnam.c): Likewise. (CFLAGS-getsgnam_r.c): Likewise. * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise. (CFLAGS-iconv_charmap.c): Likewise. (CFLAGS-dummy-repertoire.c): Likewise. (CFLAGS-charmap.c): Likewise. (CFLAGS-linereader.c): Likewise. (CFLAGS-simple-hash.c): Likewise. (CFLAGS-gconv_conf.c): Likewise. (CFLAGS-iconvconfig.c): Likewise. * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise. (CFLAGS-gethstbyad.c): Likewise. (CFLAGS-gethstbynm_r.c): Likewise. (CFLAGS-gethstbynm.c): Likewise. (CFLAGS-gethstbynm2_r.c): Likewise. (CFLAGS-gethstbynm2.c): Likewise. (CFLAGS-gethstent_r.c): Likewise. (CFLAGS-gethstent.c): Likewise. (CFLAGS-rcmd.c): Likewise. (CFLAGS-getnetbynm_r.c): Likewise. (CFLAGS-getnetbynm.c): Likewise. (CFLAGS-getnetbyad_r.c): Likewise. (CFLAGS-getnetbyad.c): Likewise. (CFLAGS-getnetent_r.c): Likewise. (CFLAGS-getnetent.c): Likewise. (CFLAGS-getaliasent_r.c): Likewise. (CFLAGS-getaliasent.c): Likewise. (CFLAGS-getrpcent_r.c): Likewise. (CFLAGS-getrpcent.c): Likewise. (CFLAGS-getservent_r.c): Likewise. (CFLAGS-getservent.c): Likewise. (CFLAGS-getprtent_r.c): Likewise. (CFLAGS-getprtent.c): Likewise. (CFLAGS-either_ntoh.c): Likewise. (CFLAGS-either_hton.c): Likewise. (CFLAGS-getnetgrent.c): Likewise. (CFLAGS-getnetgrent_r.c): Likewise. (CFLAGS-tst-checks-posix.c): Likewise. (CFLAGS-tst-sockaddr.c): Likewise. * intl/Makefile (CFLAGS-tst-gettext.c): Likewise. (CFLAGS-tst-translit.c): Likewise. (CFLAGS-tst-gettext2.c): Likewise. (CFLAGS-tst-codeset.c): Likewise. (CFLAGS-tst-gettext3.c): Likewise. (CFLAGS-tst-gettext4.c): Likewise. (CFLAGS-tst-gettext5.c): Likewise. (CFLAGS-tst-gettext6.c): Likewise. * io/Makefile (CFLAGS-open.c): Likewise. (CFLAGS-open64.c): Likewise. (CFLAGS-creat.c): Likewise. (CFLAGS-creat64.c): Likewise. (CFLAGS-fcntl.c): Likewise. (CFLAGS-poll.c): Likewise. (CFLAGS-ppoll.c): Likewise. (CFLAGS-lockf.c): Likewise. (CFLAGS-statfs.c): Likewise. (CFLAGS-fstatfs.c): Likewise. (CFLAGS-statvfs.c): Likewise. (CFLAGS-fstatvfs.c): Likewise. (CFLAGS-fts.c): Likewise. (CFLAGS-fts64.c): Likewise. (CFLAGS-ftw.c): Likewise. (CFLAGS-ftw64.c): Likewise. (CFLAGS-lockf.c): Likewise. (CFLAGS-posix_fallocate.c): Likewise. (CFLAGS-posix_fallocate64.c): Likewise. (CFLAGS-fallocate.c): Likewise. (CFLAGS-fallocate64.c): Likewise. (CFLAGS-read.c): Likewise. (CFLAGS-write.c): Likewise. (CFLAGS-test-stat.c): Likewise. (CFLAGS-test-lfs.c): Likewise. * libio/Makefile (CFLAGS-fileops.c): Likewise. (CFLAGS-fputc.c): Likewise. (CFLAGS-fputwc.c): Likewise. (CFLAGS-freopen64.c): Likewise. (CFLAGS-freopen.c): Likewise. (CFLAGS-fseek.c): Likewise. (CFLAGS-fseeko64.c): Likewise. (CFLAGS-fseeko.c): Likewise. (CFLAGS-ftello64.c): Likewise. (CFLAGS-ftello.c): Likewise. (CFLAGS-fwide.c): Likewise. (CFLAGS-genops.c): Likewise. (CFLAGS-getc.c): Likewise. (CFLAGS-getchar.c): Likewise. (CFLAGS-getwc.c): Likewise. (CFLAGS-getwchar.c): Likewise. (CFLAGS-iofclose.c): Likewise. (CFLAGS-iofflush.c): Likewise. (CFLAGS-iofgetpos64.c): Likewise. (CFLAGS-iofgetpos.c): Likewise. (CFLAGS-iofgets.c): Likewise. (CFLAGS-iofgetws.c): Likewise. (CFLAGS-iofputs.c): Likewise. (CFLAGS-iofputws.c): Likewise. (CFLAGS-iofread.c): Likewise. (CFLAGS-iofsetpos64.c): Likewise. (CFLAGS-iofsetpos.c): Likewise. (CFLAGS-ioftell.c): Likewise. (CFLAGS-iofwrite.c): Likewise. (CFLAGS-iogetdelim.c): Likewise. (CFLAGS-iogetline.c): Likewise. (CFLAGS-iogets.c): Likewise. (CFLAGS-iogetwline.c): Likewise. (CFLAGS-ioputs.c): Likewise. (CFLAGS-ioseekoff.c): Likewise. (CFLAGS-ioseekpos.c): Likewise. (CFLAGS-iosetbuffer.c): Likewise. (CFLAGS-iosetvbuf.c): Likewise. (CFLAGS-ioungetc.c): Likewise. (CFLAGS-ioungetwc.c): Likewise. (CFLAGS-oldfileops.c): Likewise. (CFLAGS-oldiofclose.c): Likewise. (CFLAGS-oldiofgetpos64.c): Likewise. (CFLAGS-oldiofgetpos.c): Likewise. (CFLAGS-oldiofsetpos64.c): Likewise. (CFLAGS-oldiofsetpos.c): Likewise. (CFLAGS-peekc.c): Likewise. (CFLAGS-putc.c): Likewise. (CFLAGS-putchar.c): Likewise. (CFLAGS-putwc.c): Likewise. (CFLAGS-putwchar.c): Likewise. (CFLAGS-rewind.c): Likewise. (CFLAGS-wfileops.c): Likewise. (CFLAGS-wgenops.c): Likewise. (CFLAGS-oldiofopen.c): Likewise. (CFLAGS-iofopen.c): Likewise. (CFLAGS-iofopen64.c): Likewise. (CFLAGS-oldtmpfile.c): Likewise. (CFLAGS-tst_putwc.c): Likewise. * locale/Makefile (CFLAGS-md5.c): Likewise. (CFLAGS-charmap.c): Likewise. (CFLAGS-locfile.c): Likewise. (CFLAGS-charmap-dir.c): Likewise. * login/Makefile (CFLAGS-grantpt.c): Likewise. (CFLAGS-getpt.c): Likewise. (CFLAGS-pt_chown.c): Likewise. * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise. (CFLAGS-obstack.c): Likewise. * math/Makefile (CFLAGS-test-tgmath3.c): Likewise. (CFLAGS-test-double-vlen4-wrappers.c): Likewise. (CFLAGS-test-double-vlen8-wrappers.c): Likewise. (CFLAGS-test-float-vlen8-wrappers.c): Likewise. (CFLAGS-test-float-vlen16-wrappers.c): Likewise. (CFLAGS-test-tgmath.c): Likewise. (CFLAGS-test-tgmath2.c): Likewise. (CFLAGS-test-tgmath-ret.c): Likewise. (CFLAGS-test-powl.c): Likewise. (CFLAGS-test-snan.c): Likewise. (CFLAGS-test-signgam-finite.c): Likewise. (CFLAGS-test-signgam-finite-c99.c): Likewise. (CFLAGS-test-signgam-finite-c11.c): Likewise. (CFLAGS-test-signgam-uchar.c): Likewise. (CFLAGS-test-signgam-uchar-init.c): Likewise. (CFLAGS-test-signgam-uchar-static.c): Likewise. (CFLAGS-test-signgam-uchar-init-static.c): Likewise. (CFLAGS-test-signgam-uint.c): Likewise. (CFLAGS-test-signgam-uint-init.c): Likewise. (CFLAGS-test-signgam-uint-static.c): Likewise. (CFLAGS-test-signgam-uint-init-static.c): Likewise. (CFLAGS-test-signgam-ullong.c): Likewise. (CFLAGS-test-signgam-ullong-init.c): Likewise. (CFLAGS-test-signgam-ullong-static.c): Likewise. (CFLAGS-test-signgam-ullong-init-static.c): Likewise. (CFLAGS-test-math-cxx11.cc): Likewise. (CFLAGS-test-math-isinff.cc): Likewise. (CFLAGS-test-math-iszero.cc): Likewise. (CFLAGS-test-math-issignaling.cc): Likewise. (CFLAGS-test-math-iscanonical.cc): Likewise. (CFLAGS-test-iszero-excess-precision.c): Likewise. (CFLAGS-test-iseqsig-excess-precision.c): Likewise. (CFLAGS-test-flt-eval-method.c): Likewise. (CFLAGS-test-fe-snans-always-signal.c): Likewise. (CFLAGS-test-finite-macros.c): Likewise. * misc/Makefile (CFLAGS-select.c): Likewise. (CFLAGS-tsearch.c): Likewise. (CFLAGS-lsearch.c): Likewise. (CFLAGS-pselect.c): Likewise. (CFLAGS-readv.c): Likewise. (CFLAGS-writev.c): Likewise. (CFLAGS-preadv.c): Likewise. (CFLAGS-preadv64.c): Likewise. (CFLAGS-pwritev.c): Likewise. (CFLAGS-pwritev64.c): Likewise. (CFLAGS-preadv2.c): Likewise. (CFLAGS-preadv64v2.c): Likewise. (CFLAGS-pwritev2.c): Likewise. (CFLAGS-pwritev64v2.c): Likewise. (CFLAGS-usleep.c): Likewise. (CFLAGS-syslog.c): Likewise. (CFLAGS-error.c): Likewise. (CFLAGS-getpass.c): Likewise. (CFLAGS-mkstemp.c): Likewise. (CFLAGS-mkstemp64.c): Likewise. (CFLAGS-getsysstats.c): Likewise. (CFLAGS-getusershell.c): Likewise. (CFLAGS-err.c): Likewise. (CFLAGS-tst-tsearch.c): Likewise. (CFLAGS-msync.c): Likewise. (CFLAGS-fdatasync.c): Likewise. (CFLAGS-fsync.c): Likewise. * nptl/Makefile (CFLAGS-nptl-init.c): Likewise. (CFLAGS-unwind.c): Likewise. (CFLAGS-unwind-forcedunwind.c): Likewise. (CFLAGS-pthread_cancel.c): Likewise. (CFLAGS-pthread_setcancelstate.c): Likewise. (CFLAGS-pthread_setcanceltype.c): Likewise. (CFLAGS-cancellation.c): Likewise. (CFLAGS-libc-cancellation.c): Likewise. (CFLAGS-pthread_exit.c): Likewise. (CFLAGS-forward.c): Likewise. (CFLAGS-pthread_testcancel.c): Likewise. (CFLAGS-pthread_join.c): Likewise. (CFLAGS-pthread_timedjoin.c): Likewise. (CFLAGS-pthread_once.c): Likewise. (CFLAGS-pthread_cond_wait.c): Likewise. (CFLAGS-sem_wait.c): Likewise. (CFLAGS-sem_timedwait.c): Likewise. (CFLAGS-fcntl.c): Likewise. (CFLAGS-lockf.c): Likewise. (CFLAGS-pread.c): Likewise. (CFLAGS-pread64.c): Likewise. (CFLAGS-pwrite.c): Likewise. (CFLAGS-pwrite64.c): Likewise. (CFLAGS-wait.c): Likewise. (CFLAGS-waitpid.c): Likewise. (CFLAGS-sigwait.c): Likewise. (CFLAGS-msgrcv.c): Likewise. (CFLAGS-msgsnd.c): Likewise. (CFLAGS-tcdrain.c): Likewise. (CFLAGS-open.c): Likewise. (CFLAGS-open64.c): Likewise. (CFLAGS-pause.c): Likewise. (CFLAGS-recv.c): Likewise. (CFLAGS-send.c): Likewise. (CFLAGS-accept.c): Likewise. (CFLAGS-sendto.c): Likewise. (CFLAGS-connect.c): Likewise. (CFLAGS-recvfrom.c): Likewise. (CFLAGS-recvmsg.c): Likewise. (CFLAGS-sendmsg.c): Likewise. (CFLAGS-close.c): Likewise. (CFLAGS-read.c): Likewise. (CFLAGS-write.c): Likewise. (CFLAGS-nanosleep.c): Likewise. (CFLAGS-sigsuspend.c): Likewise. (CFLAGS-msync.c): Likewise. (CFLAGS-fdatasync.c): Likewise. (CFLAGS-fsync.c): Likewise. (CFLAGS-pt-system.c): Likewise. (CFLAGS-tst-cleanup2.c): Likewise. (CFLAGS-tst-cleanupx2.c): Likewise. (CFLAGS-flockfile.c): Likewise. (CFLAGS-ftrylockfile.c): Likewise. (CFLAGS-funlockfile.c): Likewise. (CFLAGS-tst-initializers1.c): Likewise. (CFLAGS-tst-initializers1-c89.c): Likewise. (CFLAGS-tst-initializers1-c99.c): Likewise. (CFLAGS-tst-initializers1-c11.c): Likewise. (CFLAGS-tst-initializers1-gnu89.c): Likewise. (CFLAGS-tst-initializers1-gnu99.c): Likewise. (CFLAGS-tst-initializers1-gnu11.c): Likewise. * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise. (CFLAGS-nscd_getgr_r.c): Likewise. (CFLAGS-nscd_gethst_r.c): Likewise. (CFLAGS-nscd_getai.c): Likewise. (CFLAGS-nscd_initgroups.c): Likewise. * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise. (CFLAGS-pause.c): Likewise. (CFLAGS-pread.c): Likewise. (CFLAGS-pread64.c): Likewise. (CFLAGS-pwrite.c): Likewise. (CFLAGS-pwrite64.c): Likewise. (CFLAGS-sleep.c): Likewise. (CFLAGS-wait.c): Likewise. (CFLAGS-waitid.c): Likewise. (CFLAGS-waitpid.c): Likewise. (CFLAGS-getopt.c): Likewise. (CFLAGS-wordexp.c): Likewise. (CFLAGS-sysconf.c): Likewise. (CFLAGS-pathconf.c): Likewise. (CFLAGS-fpathconf.c): Likewise. (CFLAGS-spawn.c): Likewise. (CFLAGS-spawnp.c): Likewise. (CFLAGS-spawni.c): Likewise. (CFLAGS-glob.c): Likewise. (CFLAGS-glob64.c): Likewise. (CFLAGS-getconf.c): Likewise. (CFLAGS-nanosleep.c): Likewise. * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise. (CFLAGS-getpwent.c): Likewise. (CFLAGS-getpw.c): Likewise. (CFLAGS-fgetpwent_r.c): Likewise. * resolv/Makefile (CFLAGS-res_hconf.c): Likewise. * rt/Makefile (CFLAGS-aio_suspend.c): Likewise. (CFLAGS-mq_timedreceive.c): Likewise. (CFLAGS-mq_timedsend.c): Likewise. (CFLAGS-clock_nanosleep.c): Likewise. (CFLAGS-librt-cancellation.c): Likewise. * shadow/Makefile (CFLAGS-getspent_r.c): Likewise. (CFLAGS-getspent.c): Likewise. (CFLAGS-fgetspent.c): Likewise. (CFLAGS-fgetspent_r.c): Likewise. (CFLAGS-putspent.c): Likewise. (CFLAGS-getspnam.c): Likewise. (CFLAGS-getspnam_r.c): Likewise. * signal/Makefile (CFLAGS-sigpause.c): Likewise. (CFLAGS-sigsuspend.c): Likewise. (CFLAGS-sigtimedwait.c): Likewise. (CFLAGS-sigwait.c): Likewise. (CFLAGS-sigwaitinfo.c): Likewise. (CFLAGS-sigreturn.c): Likewise. * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise. (CFLAGS-vfwprintf.c): Likewise. (CFLAGS-tmpfile.c): Likewise. (CFLAGS-tmpfile64.c): Likewise. (CFLAGS-tempname.c): Likewise. (CFLAGS-psignal.c): Likewise. (CFLAGS-vprintf.c): Likewise. (CFLAGS-cuserid.c): Likewise. (CFLAGS-errlist.c): Likewise. (CFLAGS-siglist.c): Likewise. (CFLAGS-scanf15.c): Likewise. (CFLAGS-scanf17.c): Likewise. * stdlib/Makefile (CFLAGS-bsearch.c): Likewise. (CFLAGS-msort.c): Likewise. (CFLAGS-qsort.c): Likewise. (CFLAGS-system.c): Likewise. (CFLAGS-fmtmsg.c): Likewise. (CFLAGS-strfmon.c): Likewise. (CFLAGS-strfmon_l.c): Likewise. (CFLAGS-strfromd.c): Likewise. (CFLAGS-strfromf.c): Likewise. (CFLAGS-strfroml.c): Likewise. (CFLAGS-tst-bsearch.c): Likewise. (CFLAGS-tst-qsort.c): Likewise. (CFLAGS-tst-makecontext2.c): Likewise. * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise. (CFLAGS-xnlm_prot.c): Likewise. (CFLAGS-xrstat.c): Likewise. (CFLAGS-xyppasswd.c): Likewise. (CFLAGS-xklm_prot.c): Likewise. (CFLAGS-xrex.c): Likewise. (CFLAGS-xsm_inter.c): Likewise. (CFLAGS-xmount.c): Likewise. (CFLAGS-xrusers.c): Likewise. (CFLAGS-xspray.c): Likewise. (CFLAGS-xnfs_prot.c): Likewise. (CFLAGS-xrquota.c): Likewise. (CFLAGS-xkey_prot.c): Likewise. (CFLAGS-auth_unix.c): Likewise. (CFLAGS-key_call.c): Likewise. (CFLAGS-pmap_rmt.c): Likewise. (CFLAGS-clnt_perr.c): Likewise. (CFLAGS-openchild.c): Likewise. * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise. (CFLAGS-msgsnd.c): Likewise. * termios/Makefile (CFLAGS-tcdrain.c): Likewise. * time/Makefile (CFLAGS-tzfile.c): Likewise. (CFLAGS-tzset.c): Likewise. (CFLAGS-getdate.c): Likewise. (CFLAGS-test_time.c): Likewise. (CPPFLAGS-tst-tzname.c): Likewise. * timezone/Makefile (CFLAGS-zdump.c): Likewise. (CFLAGS-zic.c): Likewise. * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise. (CFLAGS-wcswidth.c): Likewise. (CFLAGS-wcstol.c): Likewise. (CFLAGS-wcstoul.c): Likewise. (CFLAGS-wcstoll.c): Likewise. (CFLAGS-wcstoull.c): Likewise. (CFLAGS-wcstod.c): Likewise. (CFLAGS-wcstold.c): Likewise. (CFLAGS-wcstof128.c): Likewise. (CFLAGS-wcstof.c): Likewise. (CFLAGS-wcstol_l.c): Likewise. (CFLAGS-wcstoul_l.c): Likewise. (CFLAGS-wcstoll_l.c): Likewise. (CFLAGS-wcstoull_l.c): Likewise. (CFLAGS-wcstod_l.c): Likewise. (CFLAGS-wcstold_l.c): Likewise. (CFLAGS-wcstof128_l.c): Likewise. (CFLAGS-wcstof_l.c): Likewise. (CPPFLAGS-tst-wchar-h.c): Likewise. (CPPFLAGS-wcstold_l.c): Likewise. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
387 lines
15 KiB
Makefile
387 lines
15 KiB
Makefile
# Copyright (C) 1991-2017 Free Software Foundation, Inc.
|
|
# This file is part of the GNU C Library.
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with the GNU C Library; if not, see
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
# Sub-makefile for POSIX portion of the library.
|
|
#
|
|
subdir := posix
|
|
|
|
include ../Makeconfig
|
|
|
|
headers := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h \
|
|
glob.h regex.h wordexp.h fnmatch.h \
|
|
getopt.h bits/getopt_core.h bits/getopt_ext.h bits/getopt_posix.h \
|
|
bits/types.h bits/typesizes.h bits/pthreadtypes.h \
|
|
bits/pthreadtypes-arch.h bits/thread-shared-types.h \
|
|
bits/posix1_lim.h bits/posix2_lim.h bits/posix_opt.h \
|
|
bits/local_lim.h tar.h bits/utsname.h bits/confname.h \
|
|
bits/waitflags.h bits/waitstatus.h sys/unistd.h sched.h \
|
|
bits/sched.h bits/cpu-set.h re_comp.h wait.h bits/environments.h \
|
|
cpio.h spawn.h bits/unistd.h
|
|
|
|
routines := \
|
|
uname \
|
|
times \
|
|
wait waitpid wait3 wait4 waitid \
|
|
alarm sleep pause nanosleep \
|
|
fork vfork _exit \
|
|
execve fexecve execv execle execl execvp execlp execvpe \
|
|
getpid getppid \
|
|
getuid geteuid getgid getegid getgroups setuid setgid group_member \
|
|
getpgid setpgid getpgrp bsd-getpgrp setpgrp getsid setsid \
|
|
getresuid getresgid setresuid setresgid \
|
|
pathconf sysconf fpathconf \
|
|
glob glob64 globfree globfree64 glob_pattern_p fnmatch regex \
|
|
glob-lstat-compat glob64-lstat-compat \
|
|
confstr \
|
|
getopt getopt1 \
|
|
sched_setp sched_getp sched_sets sched_gets sched_yield sched_primax \
|
|
sched_primin sched_rr_gi sched_getaffinity sched_setaffinity \
|
|
getaddrinfo gai_strerror wordexp \
|
|
pread pwrite pread64 pwrite64 \
|
|
spawn_faction_init spawn_faction_destroy spawn_faction_addclose \
|
|
spawn_faction_addopen spawn_faction_adddup2 spawn_valid_fd \
|
|
spawnattr_init spawnattr_destroy \
|
|
spawnattr_getdefault spawnattr_setdefault \
|
|
spawnattr_getflags spawnattr_setflags \
|
|
spawnattr_getpgroup spawnattr_setpgroup spawn spawnp spawni \
|
|
spawnattr_getsigmask spawnattr_getschedpolicy spawnattr_getschedparam \
|
|
spawnattr_setsigmask spawnattr_setschedpolicy spawnattr_setschedparam \
|
|
posix_madvise \
|
|
get_child_max sched_cpucount sched_cpualloc sched_cpufree
|
|
|
|
aux := init-posix environ
|
|
tests := test-errno tstgetopt testfnm runtests runptests \
|
|
tst-preadwrite tst-preadwrite64 test-vfork regexbug1 \
|
|
tst-mmap tst-mmap-offset tst-getaddrinfo tst-truncate \
|
|
tst-truncate64 tst-fork tst-fnmatch tst-regexloc tst-dir \
|
|
tst-chmod bug-regex1 bug-regex2 bug-regex3 bug-regex4 \
|
|
tst-gnuglob tst-gnuglob64 tst-regex bug-regex6 bug-regex7 \
|
|
bug-regex8 bug-regex9 bug-regex10 bug-regex11 bug-regex12 \
|
|
bug-regex13 bug-regex14 bug-regex15 bug-regex16 \
|
|
bug-regex17 bug-regex18 bug-regex19 \
|
|
bug-regex21 bug-regex22 bug-regex23 bug-regex24 \
|
|
bug-regex25 bug-regex26 bug-regex27 bug-regex28 \
|
|
bug-regex29 bug-regex30 bug-regex31 bug-regex32 \
|
|
tst-nice tst-nanosleep tst-regex2 \
|
|
transbug tst-rxspencer tst-pcre tst-boost \
|
|
bug-ga1 tst-vfork1 tst-vfork2 tst-vfork3 tst-waitid \
|
|
tst-getaddrinfo2 bug-glob2 bug-glob3 tst-sysconf \
|
|
tst-execvp1 tst-execvp2 tst-execlp1 tst-execlp2 \
|
|
tst-execv1 tst-execv2 tst-execl1 tst-execl2 \
|
|
tst-execve1 tst-execve2 tst-execle1 tst-execle2 \
|
|
tst-execvp3 tst-execvp4 \
|
|
tst-execvpe1 tst-execvpe2 tst-execvpe3 tst-execvpe4 \
|
|
tst-execvpe5 tst-execvpe6 \
|
|
tst-getaddrinfo3 tst-fnmatch2 tst-cpucount tst-cpuset \
|
|
bug-getopt1 bug-getopt2 bug-getopt3 bug-getopt4 \
|
|
bug-getopt5 tst-getopt_long1 bug-regex34 bug-regex35 \
|
|
tst-pathconf tst-rxspencer-no-utf8 \
|
|
tst-fnmatch3 bug-regex36 \
|
|
tst-posix_spawn-fd tst-posix_spawn-setsid \
|
|
tst-posix_fadvise tst-posix_fadvise64 \
|
|
tst-sysconf-empty-chroot tst-glob_symlinks tst-fexecve \
|
|
tst-glob-tilde
|
|
tests-internal := bug-regex5 bug-regex20 bug-regex33 \
|
|
tst-rfc3484 tst-rfc3484-2 tst-rfc3484-3 \
|
|
tst-glob_lstat_compat
|
|
xtests := bug-ga2 tst-getaddrinfo4 tst-getaddrinfo5
|
|
ifeq (yes,$(build-shared))
|
|
test-srcs := globtest
|
|
tests += wordexp-test tst-exec tst-spawn tst-spawn2 tst-spawn3
|
|
endif
|
|
ifeq (yesyes,$(build-shared)$(have-thread-library))
|
|
tests += tst-getopt-cancel
|
|
endif
|
|
tests-static = tst-exec-static tst-spawn-static
|
|
tests += $(tests-static)
|
|
others := getconf
|
|
install-bin := getconf
|
|
install-others-programs := $(inst_libexecdir)/getconf
|
|
|
|
before-compile += testcases.h ptestcases.h $(objpfx)posix-conf-vars-def.h
|
|
|
|
# So they get cleaned up.
|
|
generated += $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \
|
|
annexc annexc.out wordexp-tst.out bug-regex2-mem.out \
|
|
bug-regex2.mtrace bug-regex14-mem.out bug-regex14.mtrace \
|
|
bug-regex21-mem.out bug-regex21.mtrace \
|
|
bug-regex31-mem.out bug-regex31.mtrace \
|
|
tst-rxspencer-no-utf8-mem.out tst-rxspencer-no-utf8.mtrace \
|
|
tst-getconf.out \
|
|
tst-pcre-mem.out tst-pcre.mtrace tst-boost-mem.out \
|
|
tst-boost.mtrace bug-ga2.mtrace bug-ga2-mem.out \
|
|
bug-glob2.mtrace bug-glob2-mem.out tst-vfork3-mem.out \
|
|
tst-vfork3.mtrace getconf.speclist tst-fnmatch-mem.out \
|
|
tst-fnmatch.mtrace bug-regex36.mtrace
|
|
|
|
ifeq ($(run-built-tests),yes)
|
|
ifeq (yes,$(build-shared))
|
|
tests-special += $(objpfx)globtest.out $(objpfx)wordexp-tst.out
|
|
endif
|
|
endif
|
|
|
|
# Run a test on the header files we use.
|
|
# XXX Please note that for now we ignore the result of this test.
|
|
tests-special += $(objpfx)annexc.out
|
|
ifeq ($(run-built-tests),yes)
|
|
tests-special += $(objpfx)bug-regex2-mem.out $(objpfx)bug-regex14-mem.out \
|
|
$(objpfx)bug-regex21-mem.out $(objpfx)bug-regex31-mem.out \
|
|
$(objpfx)tst-rxspencer-no-utf8-mem.out $(objpfx)tst-pcre-mem.out \
|
|
$(objpfx)tst-boost-mem.out $(objpfx)tst-getconf.out \
|
|
$(objpfx)bug-glob2-mem.out $(objpfx)tst-vfork3-mem.out \
|
|
$(objpfx)tst-fnmatch-mem.out $(objpfx)bug-regex36-mem.out \
|
|
$(objpfx)tst-glob-tilde-mem.out
|
|
xtests-special += $(objpfx)bug-ga2-mem.out
|
|
endif
|
|
|
|
include ../Rules
|
|
|
|
ifeq ($(run-built-tests),yes)
|
|
# globtest and wordexp-test currently only works with shared libraries
|
|
ifeq (yes,$(build-shared))
|
|
$(objpfx)globtest.out: globtest.sh $(objpfx)globtest
|
|
$(SHELL) $< $(common-objpfx) '$(test-via-rtld-prefix)' \
|
|
'$(test-program-prefix)' '$(test-wrapper-env)' > $@; \
|
|
$(evaluate-test)
|
|
$(objpfx)wordexp-tst.out: wordexp-tst.sh $(objpfx)wordexp-test
|
|
$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
|
|
'$(run-program-env)' '$(test-program-prefix-after-env)' > $@; \
|
|
$(evaluate-test)
|
|
endif
|
|
|
|
LOCALES := cs_CZ.UTF-8 da_DK.ISO-8859-1 de_DE.ISO-8859-1 de_DE.UTF-8 \
|
|
en_US.UTF-8 es_US.ISO-8859-1 es_US.UTF-8 ja_JP.EUC-JP tr_TR.UTF-8
|
|
include ../gen-locales.mk
|
|
|
|
$(objpfx)bug-regex1.out: $(gen-locales)
|
|
$(objpfx)bug-regex4.out: $(gen-locales)
|
|
$(objpfx)bug-regex5.out: $(gen-locales)
|
|
$(objpfx)bug-regex6.out: $(gen-locales)
|
|
$(objpfx)bug-regex17.out: $(gen-locales)
|
|
$(objpfx)bug-regex18.out: $(gen-locales)
|
|
$(objpfx)bug-regex19.out: $(gen-locales)
|
|
$(objpfx)bug-regex20.out: $(gen-locales)
|
|
$(objpfx)bug-regex22.out: $(gen-locales)
|
|
$(objpfx)bug-regex23.out: $(gen-locales)
|
|
$(objpfx)bug-regex25.out: $(gen-locales)
|
|
$(objpfx)bug-regex26.out: $(gen-locales)
|
|
$(objpfx)bug-regex30.out: $(gen-locales)
|
|
$(objpfx)bug-regex32.out: $(gen-locales)
|
|
$(objpfx)bug-regex33.out: $(gen-locales)
|
|
$(objpfx)bug-regex34.out: $(gen-locales)
|
|
$(objpfx)bug-regex35.out: $(gen-locales)
|
|
$(objpfx)tst-fnmatch.out: $(gen-locales)
|
|
$(objpfx)tst-fnmatch4.out: $(gen-locales)
|
|
$(objpfx)tst-fnmatch5.out: $(gen-locales)
|
|
$(objpfx)tst-regex.out: $(gen-locales)
|
|
$(objpfx)tst-regex2.out: $(gen-locales)
|
|
$(objpfx)tst-regexloc.out: $(gen-locales)
|
|
$(objpfx)tst-rxspencer.out: $(gen-locales)
|
|
$(objpfx)tst-rxspencer-no-utf8.out: $(gen-locales)
|
|
endif
|
|
|
|
# If we will use the generic uname implementation, we must figure out what
|
|
# it will say by examining the system, and write the results in config-name.h.
|
|
uname.c: $(objpfx)config-name.h
|
|
$(objpfx)config-name.h: $(..)scripts/config-uname.sh $(common-objpfx)config.make
|
|
$(make-target-directory)
|
|
$< '$(config-os)' '$(config-release)' \
|
|
'$(config-machine)-$(config-vendor)' > $@.new
|
|
mv -f $@.new $@
|
|
|
|
CFLAGS-getaddrinfo.c += -DRESOLVER -fexceptions
|
|
CFLAGS-pause.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pread.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pread64.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pwrite.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-pwrite64.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-sleep.c += -fexceptions
|
|
CFLAGS-wait.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-waitid.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-waitpid.c += -fexceptions -fasynchronous-unwind-tables
|
|
CFLAGS-getopt.c += -fexceptions
|
|
CFLAGS-wordexp.c += -fexceptions
|
|
CFLAGS-wordexp.os = -fomit-frame-pointer
|
|
CFLAGS-sysconf.c += -fexceptions -DGETCONF_DIR='"$(libexecdir)/getconf"'
|
|
CFLAGS-pathconf.c += -fexceptions
|
|
CFLAGS-fpathconf.c += -fexceptions
|
|
CFLAGS-spawn.c += -fexceptions
|
|
CFLAGS-spawn.os = -fomit-frame-pointer
|
|
CFLAGS-spawnp.c += -fexceptions
|
|
CFLAGS-spawnp.os = -fomit-frame-pointer
|
|
CFLAGS-spawni.c += -fexceptions
|
|
CFLAGS-spawni.os = -fomit-frame-pointer
|
|
CFLAGS-glob.c += $(uses-callbacks) -fexceptions
|
|
CFLAGS-glob64.c += $(uses-callbacks) -fexceptions
|
|
CFLAGS-getconf.c += -DGETCONF_DIR='"$(libexecdir)/getconf"'
|
|
CFLAGS-execve.os = -fomit-frame-pointer
|
|
CFLAGS-fexecve.os = -fomit-frame-pointer
|
|
CFLAGS-execv.os = -fomit-frame-pointer
|
|
CFLAGS-execle.os = -fomit-frame-pointer
|
|
CFLAGS-execl.os = -fomit-frame-pointer
|
|
CFLAGS-execvp.os = -fomit-frame-pointer
|
|
CFLAGS-execlp.os = -fomit-frame-pointer
|
|
CFLAGS-nanosleep.c += -fexceptions -fasynchronous-unwind-tables
|
|
|
|
tstgetopt-ARGS = -a -b -cfoobar --required foobar --optional=bazbug \
|
|
--none random --col --color --colour
|
|
|
|
tst-exec-ARGS = -- $(host-test-program-cmd)
|
|
tst-exec-static-ARGS = $(tst-exec-ARGS)
|
|
tst-execvpe5-ARGS = -- $(host-test-program-cmd)
|
|
tst-spawn-ARGS = -- $(host-test-program-cmd)
|
|
tst-spawn-static-ARGS = $(tst-spawn-ARGS)
|
|
tst-dir-ARGS = `pwd` `cd $(common-objdir)/$(subdir); pwd` `cd $(common-objdir); pwd` $(objpfx)tst-dir
|
|
tst-chmod-ARGS = $(objdir)
|
|
tst-vfork3-ARGS = --test-dir=$(objpfx)
|
|
|
|
tst-rxspencer-ARGS = --utf8 rxspencer/tests
|
|
tst-rxspencer-no-utf8-ARGS = rxspencer/tests
|
|
tst-pcre-ARGS = PCRE.tests
|
|
tst-boost-ARGS = BOOST.tests
|
|
bug-glob1-ARGS = "$(objpfx)"
|
|
tst-execvp3-ARGS = --test-dir=$(objpfx)
|
|
|
|
testcases.h: TESTS TESTS2C.sed
|
|
LC_ALL=C sed -f TESTS2C.sed < $< > $@T
|
|
mv -f $@T $@
|
|
|
|
ptestcases.h: PTESTS PTESTS2C.sed
|
|
LC_ALL=C sed -f PTESTS2C.sed < $< > $@T
|
|
mv -f $@T $@
|
|
|
|
$(objpfx)tst-getopt-cancel: $(shared-thread-library)
|
|
|
|
test-xfail-annexc = yes
|
|
$(objpfx)annexc.out: $(objpfx)annexc
|
|
$(dir $<)$(notdir $<) '$(CC)' \
|
|
'$(patsubst %,-I../%,$(sorted-subdirs)) -I../include $(+sysdep-includes) $(sysincludes) -I..' > $@; \
|
|
$(evaluate-test)
|
|
|
|
annexc-CFLAGS = -O
|
|
$(objpfx)annexc: annexc.c
|
|
$(native-compile)
|
|
|
|
tst-fnmatch-ENV += MALLOC_TRACE=$(objpfx)tst-fnmatch.mtrace
|
|
|
|
$(objpfx)tst-fnmatch-mem.out: $(objpfx)tst-fnmatch.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-fnmatch.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex2-ENV = MALLOC_TRACE=$(objpfx)bug-regex2.mtrace
|
|
|
|
$(objpfx)bug-regex2-mem.out: $(objpfx)bug-regex2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex14-ENV = MALLOC_TRACE=$(objpfx)bug-regex14.mtrace
|
|
|
|
$(objpfx)bug-regex14-mem.out: $(objpfx)bug-regex14.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex14.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex21-ENV = MALLOC_TRACE=$(objpfx)bug-regex21.mtrace
|
|
|
|
$(objpfx)bug-regex21-mem.out: $(objpfx)bug-regex21.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex21.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex31-ENV = MALLOC_TRACE=$(objpfx)bug-regex31.mtrace
|
|
|
|
$(objpfx)bug-regex31-mem.out: $(objpfx)bug-regex31.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex31.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-regex36-ENV = MALLOC_TRACE=$(objpfx)bug-regex36.mtrace
|
|
|
|
$(objpfx)bug-regex36-mem.out: $(objpfx)bug-regex36.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-regex36.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-vfork3-ENV = MALLOC_TRACE=$(objpfx)tst-vfork3.mtrace
|
|
|
|
$(objpfx)tst-vfork3-mem.out: $(objpfx)tst-vfork3.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-vfork3.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
# tst-rxspencer.mtrace is not generated, only
|
|
# tst-rxspencer-no-utf8.mtrace, since otherwise the file has almost
|
|
# 100M and takes very long time to process.
|
|
tst-rxspencer-no-utf8-ENV += MALLOC_TRACE=$(objpfx)tst-rxspencer-no-utf8.mtrace
|
|
$(objpfx)tst-rxspencer-no-utf8-mem.out: $(objpfx)tst-rxspencer-no-utf8.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-rxspencer-no-utf8.mtrace \
|
|
> $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-pcre-ENV = MALLOC_TRACE=$(objpfx)tst-pcre.mtrace
|
|
$(objpfx)tst-pcre-mem.out: $(objpfx)tst-pcre.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-pcre.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-boost-ENV = MALLOC_TRACE=$(objpfx)tst-boost.mtrace
|
|
$(objpfx)tst-boost-mem.out: $(objpfx)tst-boost.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-boost.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
$(objpfx)tst-getconf.out: tst-getconf.sh $(objpfx)getconf
|
|
$(SHELL) $< $(common-objpfx) '$(built-program-cmd)' > $@; \
|
|
$(evaluate-test)
|
|
|
|
$(objpfx)bug-ga2-mem.out: $(objpfx)bug-ga2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-ga2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
bug-ga2-ENV = MALLOC_TRACE=$(objpfx)bug-ga2.mtrace
|
|
|
|
bug-glob2-ENV = MALLOC_TRACE=$(objpfx)bug-glob2.mtrace
|
|
|
|
$(objpfx)bug-glob2-mem.out: $(objpfx)bug-glob2.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)bug-glob2.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
tst-glob-tilde-ENV = MALLOC_TRACE=$(objpfx)tst-glob-tilde.mtrace
|
|
|
|
$(objpfx)tst-glob-tilde-mem.out: $(objpfx)tst-glob-tilde.out
|
|
$(common-objpfx)malloc/mtrace $(objpfx)tst-glob-tilde.mtrace > $@; \
|
|
$(evaluate-test)
|
|
|
|
$(inst_libexecdir)/getconf: $(inst_bindir)/getconf \
|
|
$(objpfx)getconf.speclist FORCE
|
|
$(addprefix $(..)./scripts/mkinstalldirs ,\
|
|
$(filter-out $(wildcard $@),$@))
|
|
while read spec; do \
|
|
ln -f $< $@/$$spec.new || $(INSTALL_PROGRAM) $< $@/$$spec.new; \
|
|
mv -f $@/$$spec.new $@/$$spec; \
|
|
done < $(objpfx)getconf.speclist
|
|
|
|
$(objpfx)getconf.speclist: getconf-speclist.c posix-envs.def
|
|
$(compile.c) -E -o - \
|
|
| sed -n -e '/@@@PRESENT_/s/@@@PRESENT_//p' > $@.new
|
|
mv -f $@.new $@
|
|
|
|
# This file is only actually needed at install time. But forcing it to
|
|
# be built both makes it available for eyeball inspection and avoids the
|
|
# surprise of things that look like compilation being done by 'make install'.
|
|
others: $(objpfx)getconf.speclist
|
|
|
|
$(objpfx)posix-conf-vars-def.h: $(..)scripts/gen-posix-conf-vars.awk \
|
|
posix-conf-vars.list Makefile
|
|
$(make-target-directory)
|
|
$(AWK) -f $(filter-out Makefile, $^) > $@.tmp
|
|
mv -f $@.tmp $@
|