Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7404785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:18:20+00:00 2026-05-29T05:18:20+00:00

I’m looking to migrate a large project from using make to using waf .

  • 0

I’m looking to migrate a large project from using make to using waf. Are there any tools that can help automate the process to some extent?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:18:21+00:00Added an answer on May 29, 2026 at 5:18 am

    No, there isn’t, but the migration isn’t that complex.

    If you’ve never used waf before, look at an example from the demos/ folder (c is the typical one), and digest the waf book.

    Then, from make to waf:

    • in the configure step, materialized by the configure() function, instanciate the needed high-level tools and define the relations to external libraries using high-level tools if possible (eg. check_cfg() handles pkg-config(1)) or fall back in defining {DEFINES,INCLUDE,LIB,...}_$LIBNAME, eg:
    def configure(cfg):
        # I want to do C with any available compiler
        cfg.load("compiler_c") # will detect MSVC, GCC, or other common compilers
    
        # always include cwd
        cfg.env.INCLUDES += ['.']
    
        # I want to link all my programs with pthread
        cfg.env.LIB += ['pthread']
    
        # I want to link with static zlib
        cfg.env.STLIB_Z += ['z']
    
        # I want to use pkg-config to tell me how to link with pjsip
        # and avoid typing the risky -DPJ_AUTOCONF=1 -pipe -O2 -march=k8-sse3 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=64 l1-cache-line-size=64 l2-cache-size=512 -mtune=k8 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -I/home/portage/tmp/net-libs-pjsip-1.12/image//usr/include  -L/home/portage/tmp/net-libs-pjsip-1.12/image//usr/lib -lpjsua -lpjsip-ua -lpjsip-simple -lpjsip -lpjmedia-codec -lpjmedia -lpjmedia-audiodev -lpjnath -lpjlib-util -lresample -lmilenage -lsrtp -lg7221codec -lpj -lm -luuid -lnsl -lrt -lpthread -lasound -lcrypto -lssl -lopencore-amrnb
        # the *_PJSIP variables will be created
        cfg.check_cfg(package='libpjproject',
                      uselib_store='PJSIP',
                      args='--libs --cflags',)
    

    avoid using *FLAGS if possible, as they are compiler-specific.

    • replace standard makefile rules by high level rules (using tools instanciated in configure()), eg.
    bld(target='mylib',
        features='c', # see note
        source=['a.c', 'b.c'],
        use=['Z', 'PJSIP'],
        )
    
    bld(target='name',
        features='c cprogram',
        source=['main.c'],
        use=['mylib'],
        )
    
    • non-standard rules and high-level tools can be created if needed, see waf book

    Overall, the build scripts will be shorter and easier to read than makefiles.
    They are more linear, and their content is more semantical.

    Note that you don’t need to create static libraries if you don’t plan to export them.
    waf tools does not use the shell to call programs, so the command-line length limit (main reason to create internal static libs) is not a problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.