Commit 577bc63d authored by ndenoyelle's avatar ndenoyelle Committed by Swann Perarnau

[fix] Clean-up out-of-tree building

Adapted to the new master from a patch sent by @cfoyer

    When building out of tree as the, make sure that target refer to
    relative paths.

    This commit also clean-up the usage of the flags and defines
    a per-target definition of flags (can be changed for a
    AM_CPPFLAGS if the global definition is good enough).
Signed-off-by: Clément Foyer's avatarClement Foyer <cfoyer@cray.com>

Also adds Clement to the authors list.
parent 208dfde9
Pipeline #7971 passed with stages
in 24 minutes and 33 seconds
......@@ -30,8 +30,8 @@ make:generic:
variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script:
- mkdir build
- ./autogen.sh
- mkdir build
- ./configure --prefix=`pwd`/build
- make
- make check
......@@ -50,9 +50,11 @@ make:out-of-tree:
variables:
CFLAGS: "-std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-but-set-parameter"
script:
- ./autogen.sh
- mkdir out
- cd out
- ../configure
- mkdir build
- ../configure --prefix=`pwd`/build
- make
- make check
artifacts:
......
......@@ -3,3 +3,4 @@ Kamil Iskra <iskra@mcs.anl.gov>
Brian Suchy <briansuchy2022@u.northwestern.edu>
Valentin Reis <fre@freux.fr>
Nicolas Denoyelle <ndenoyelle@anl.gov>
Clement Foyer <cfoyer@cray.com>
AM_CFLAGS = -I$(top_srcdir)/include $(PTHREAD_CFLAGS)
AM_CPPFLAGS = -I$(top_srcdir)/include $(PTHREAD_CFLAGS)
AM_LDFLAGS = $(PTHREAD_LIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment