make/project.xml

Mon, 04 Mar 2024 09:06:15 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 04 Mar 2024 09:06:15 +0100
changeset 842
b48cbfa109d4
parent 825
3f324ea53152
permissions
-rw-r--r--

add -lm to ldflags on Solaris

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project xmlns="http://unixwork.de/uwproj">
     3     <config>
     4         <var name="src_dir" exec="true">pwd</var>
     5         <var name="DOXYGEN" exec="true">command -v doxygen</var>
     6         <var name="PANDOC" exec="true">command -v pandoc</var>
     7     </config>
     9     <dependency>
    10         <make>
    11             # library version
    12             VERSION=3.1.0
    13             LIBVERSION=5.0.0
    14             LIBVERSION_MAJOR=5
    16             # build directory structure !! do not change or override !!
    17             build_dir=${src_dir}/build
    18             docs_dir=${src_dir}/build/docs
    19             dist_dir=${src_dir}/dist
    20         </make>
    21     </dependency>
    23     <dependency platform="solaris">
    24         <ldflags>-lm</ldflags>
    25     </dependency>
    27     <dependency name="file-tools">
    28         <make>
    29             MKDIR=/bin/mkdir -p
    30             RMFILE=/bin/rm -f
    31             RMDIR=/bin/rm -f -R
    32             COPYFILE=/bin/cp -f
    33             COPYALL=/bin/cp -f -R
    34             SYMLINK=/bin/ln -s
    35         </make>
    36     </dependency>
    38     <dependency name="c" platform="mingw">
    39         <lang>c</lang>
    40         <make>
    41             AR=ar
    42             ARFLAGS=r
    43             STLIB_EXT=.lib
    44             SHLIB_EXT=.dll
    45         </make>
    46     </dependency>
    48     <dependency name="c" platform="macos">
    49         <lang>c</lang>
    50         <make>
    51             AR=ar
    52             ARFLAGS=r
    53             STLIB_EXT=.a
    54             SHLIB_EXT=.dylib
    55         </make>
    56     </dependency>
    58     <dependency name="c" platform="unix">
    59         <lang>c</lang>
    60         <make>
    61             AR=ar
    62             ARFLAGS=r
    63             STLIB_EXT=.a
    64             SHLIB_EXT=.so
    65         </make>
    66     </dependency>
    68     <dependency name="doxygen">
    69         <test>test -n "$DOXYGEN"</test>
    70     </dependency>
    72     <dependency name="pandoc">
    73         <test>test -n "$PANDOC"</test>
    74     </dependency>
    76     <dependency name="coverage" toolchain="gnuc">
    77         <cflags>\${COVERAGE_CFLAGS}</cflags>
    78         <ldflags>\${COVERAGE_LDFLAGS}</ldflags>
    79     </dependency>
    81     <target>
    82         <option arg="with-docs">
    83             <value str="all">
    84                 <dependencies>pandoc,doxygen</dependencies>
    85                 <make>
    86                     # Documentation
    87                     WITH_DOCS_API=yes
    88                     WITH_DOCS_HTML=yes
    89                 </make>
    90             </value>
    91             <value str="html">
    92                 <dependencies>pandoc</dependencies>
    93                 <make>
    94                     # Documentation
    95                     WITH_DOCS_HTML=yes
    96                 </make>
    97             </value>
    98             <value str="api">
    99                 <dependencies>doxygen</dependencies>
   100                 <make>
   101                     # Documentation
   102                     WITH_DOCS_API=yes
   103                 </make>
   104             </value>
   105             <value str="none"/>
   106             <default value="all"/>
   107             <default value="html"/>
   108             <default value="api"/>
   109             <default value="none"/>
   110         </option>
   111         <feature name="coverage">
   112             <dependencies>coverage</dependencies>
   113         </feature>
   114         <dependencies>c,file-tools</dependencies>
   115     </target>
   116 </project>

mercurial