project boost/program_options : source-location ../src ; SOURCES = cmdline config_file options_description parsers variables_map value_semantic positional_options utf8_codecvt_facet convert winmain split ; lib boost_program_options : $(SOURCES).cpp : shared:BOOST_PROGRAM_OPTIONS_DYN_LINK=1 # tell source we're building dll's # See https://svn.boost.org/trac/boost/ticket/5049 hpux,gcc:_INCLUDE_STDC__SOURCE_199901 : : shared:BOOST_PROGRAM_OPTIONS_DYN_LINK=1 ; boost-install boost_program_options ;