refactor: srcs/ -> src
This commit is contained in:
parent
d573990df8
commit
69b5766782
16 changed files with 37 additions and 38 deletions
72
configure
vendored
72
configure
vendored
|
|
@ -94,58 +94,58 @@ Usage: ./configure [OPTIONS]
|
||||||
Configuration script for $PROJECT_NAME v$SCRIPT_VERSION
|
Configuration script for $PROJECT_NAME v$SCRIPT_VERSION
|
||||||
|
|
||||||
libicmp Options:
|
libicmp Options:
|
||||||
--with-system-libicmp Use system-installed libicmp (fail if not found)
|
--with-system-libicmp Use system-installed libicmp (fail if not found)
|
||||||
--with-local-libicmp Build local libicmp (ignore system version)
|
--with-local-libicmp Build local libicmp (ignore system version)
|
||||||
--auto-libicmp Auto-detect libicmp (default)
|
--auto-libicmp Auto-detect libicmp (default)
|
||||||
|
|
||||||
Library Type Options:
|
Library Type Options:
|
||||||
--prefer-static Prefer static library (.a) with fallback (default if local)
|
--prefer-static Prefer static library (.a) with fallback (default if local)
|
||||||
--prefer-shared Prefer shared library (.so) with fallback (default if system)
|
--prefer-shared Prefer shared library (.so) with fallback (default if system)
|
||||||
--static-only Require static library (fail if unavailable)
|
--static-only Require static library (fail if unavailable)
|
||||||
--shared-only Require shared library (fail if unavailable)
|
--shared-only Require shared library (fail if unavailable)
|
||||||
|
|
||||||
Build Options:
|
Build Options:
|
||||||
--enable-debug Enable debug symbols (-g -O0)
|
--enable-debug Enable debug symbols (-g -O0)
|
||||||
--disable-debug Disable debug (default, -O2)
|
--disable-debug Disable debug (default, -O2)
|
||||||
--enable-sanitizers Enable AddressSanitizer and UndefinedBehaviorSanitizer
|
--enable-sanitizers Enable AddressSanitizer and UndefinedBehaviorSanitizer
|
||||||
--enable-lto Enable Link Time Optimization
|
--enable-lto Enable Link Time Optimization
|
||||||
--strict Enable strict warnings (-Wpedantic -Wconversion etc.)
|
--strict Enable strict warnings (-Wpedantic -Wconversion etc.)
|
||||||
|
|
||||||
Installation Paths:
|
Installation Paths:
|
||||||
--prefix=PREFIX Installation prefix (default: $DEFAULT_PREFIX)
|
--prefix=PREFIX Installation prefix (default: $DEFAULT_PREFIX)
|
||||||
--bindir=DIR Binary directory (default: PREFIX/bin)
|
--bindir=DIR Binary directory (default: PREFIX/bin)
|
||||||
--libdir=DIR Library directory (default: PREFIX/lib)
|
--libdir=DIR Library directory (default: PREFIX/lib)
|
||||||
--includedir=DIR Include directory (default: PREFIX/include)
|
--includedir=DIR Include directory (default: PREFIX/include)
|
||||||
--libicmp-prefix=PREFIX libicmp installation prefix (default: same as --prefix)
|
--libicmp-prefix=PREFIX libicmp installation prefix (default: same as --prefix)
|
||||||
|
|
||||||
Test Options:
|
Test Options:
|
||||||
--enable-tests Build tests (requires criterion)
|
--enable-tests Build tests (requires criterion)
|
||||||
--disable-tests Don't build tests (default)
|
--disable-tests Don't build tests (default)
|
||||||
--enable-sudo-tests Tests require sudo (default)
|
--enable-sudo-tests Tests require sudo (default)
|
||||||
--disable-sudo-tests Tests without sudo (requires capabilities)
|
--disable-sudo-tests Tests without sudo (requires capabilities)
|
||||||
|
|
||||||
libicmp Installation:
|
libicmp Installation:
|
||||||
--install-libicmp Install libicmp to system (if built locally)
|
--install-libicmp Install libicmp to system (if built locally)
|
||||||
--no-install-libicmp Don't install libicmp (default)
|
--no-install-libicmp Don't install libicmp (default)
|
||||||
|
|
||||||
Compiler Options:
|
Compiler Options:
|
||||||
CC=compiler Specify compiler (default: $DEFAULT_CC)
|
CC=compiler Specify compiler (default: $DEFAULT_CC)
|
||||||
CFLAGS="flags" Additional compilation flags
|
CFLAGS="flags" Additional compilation flags
|
||||||
CPPFLAGS="flags" Additional preprocessor flags
|
CPPFLAGS="flags" Additional preprocessor flags
|
||||||
LDFLAGS="flags" Additional linker flags
|
LDFLAGS="flags" Additional linker flags
|
||||||
|
|
||||||
Other Options:
|
Other Options:
|
||||||
--help, -h Show this help message
|
--help, -h Show this help message
|
||||||
--version, -v Show version
|
--version, -v Show version
|
||||||
--verbose Verbose output during configuration
|
--verbose Verbose output during configuration
|
||||||
--quiet, -q Quiet mode (minimal output)
|
--quiet, -q Quiet mode (minimal output)
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
./configure
|
./configure
|
||||||
./configure --with-local-libicmp --static-only
|
./configure --with-local-libicmp --static-only
|
||||||
./configure --enable-debug --enable-sanitizers --enable-tests
|
./configure --enable-debug --enable-sanitizers --enable-tests
|
||||||
./configure --prefix=/opt/ft_ping --install-libicmp
|
./configure --prefix=/opt/ft_ping --install-libicmp
|
||||||
./configure CC=gcc --strict
|
./configure CC=gcc --strict
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,4 @@ typedef struct s_ping_config
|
||||||
|
|
||||||
int cli_parse_arguments(int argc, char **argv, t_ping_config *config);
|
int cli_parse_arguments(int argc, char **argv, t_ping_config *config);
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
SRC_DIR = srcs
|
SRC_DIR = src
|
||||||
SRCS = $(SRC_DIR)/main.c \
|
SRCS = $(SRC_DIR)/main.c \
|
||||||
$(SRC_DIR)/cli/parse.c \
|
$(SRC_DIR)/cli/parse.c \
|
||||||
$(SRC_DIR)/cli/handlers/handle_count.c \
|
$(SRC_DIR)/cli/handlers/handle_count.c \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue