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