Initial commit
This commit is contained in:
commit
303a1a67ed
9 changed files with 119 additions and 0 deletions
18
.gitignore
vendored
Normal file
18
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
configure
|
||||||
|
config.log
|
||||||
|
config.status
|
||||||
|
aclocal.m4
|
||||||
|
autom4te.cache/
|
||||||
|
Makefile.in
|
||||||
|
Makefile
|
||||||
|
/libtool
|
||||||
|
/ltmain.sh
|
||||||
|
*.o
|
||||||
|
*.lo
|
||||||
|
*.la
|
||||||
|
*.Plo
|
||||||
|
build-aux/
|
||||||
|
m4/
|
||||||
|
ft_getopt.pc
|
||||||
|
.libs/
|
||||||
|
compile_commands.json
|
||||||
11
Makefile.am
Normal file
11
Makefile.am
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
|
SUBDIRS = src
|
||||||
|
|
||||||
|
pkgincludedir = $(includedir)/$(PACKAGE_NAME)
|
||||||
|
pkginclude_HEADERS = \
|
||||||
|
include/libft_ssl.h \
|
||||||
|
include/compiler.h
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libft_ssl.pc
|
||||||
3
autogen.sh
Executable file
3
autogen.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
autoreconf --install --verbose
|
||||||
46
configure.ac
Normal file
46
configure.ac
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
AC_PREREQ([2.69])
|
||||||
|
AC_INIT([libft_ssl], [0.0.1], [])
|
||||||
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
|
AC_CONFIG_MACRO_DIRS([m4])
|
||||||
|
AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects])
|
||||||
|
AC_PROG_CC
|
||||||
|
AM_PROG_AR
|
||||||
|
|
||||||
|
LT_PREREQ([2.2])
|
||||||
|
LT_INIT
|
||||||
|
|
||||||
|
# --enable-debug
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
[debug],
|
||||||
|
[AS_HELP_STRING([--enable-debug], [Enable debug build: -g -O0 (default: no)])],
|
||||||
|
[enable_debug=$enableval],
|
||||||
|
[enable_debug=no]
|
||||||
|
)
|
||||||
|
AM_CONDITIONAL([ENABLE_DEBUG], [test "x$enable_debug" = "xyes"])
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_debug" = "xyes"],
|
||||||
|
[CFLAGS="-g -O0"],
|
||||||
|
[CFLAGS="-O2"],
|
||||||
|
)
|
||||||
|
|
||||||
|
STRICT_CFLAGS="-Wall -Wextra -Werror -pipe -Wpedantic -Wconversion -Wshadow -Wvla"
|
||||||
|
AC_SUBST([STRICT_CFLAGS])
|
||||||
|
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([
|
||||||
|
Makefile
|
||||||
|
src/Makefile
|
||||||
|
libft_ssl.pc
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_OUTPUT
|
||||||
|
|
||||||
|
AC_MSG_NOTICE([
|
||||||
|
|
||||||
|
libft_ssl $VERSION
|
||||||
|
---------------
|
||||||
|
prefix : $prefix
|
||||||
|
CC : $CC
|
||||||
|
CFLAGS : $STRICT_CFLAGS $CFLAGS
|
||||||
|
debug : $enable_debug
|
||||||
|
])
|
||||||
11
include/compiler.h
Normal file
11
include/compiler.h
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#ifndef COMPILER_H
|
||||||
|
#define COMPILER_H
|
||||||
|
|
||||||
|
#define __unused __attribute__((unused))
|
||||||
|
|
||||||
|
#define COUNT_OF(arr) (sizeof(arr) / sizeof((arr)[0]))
|
||||||
|
|
||||||
|
#define STATIC_ARRAY_FOREACH(arr, ptr) \
|
||||||
|
for ((ptr) = (arr); (ptr) < (arr) + COUNT_OF(arr); (ptr)++)
|
||||||
|
|
||||||
|
#endif
|
||||||
6
include/libft_ssl.h
Normal file
6
include/libft_ssl.h
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef LIBFT_SSL_H
|
||||||
|
#define LIBFT_SSL_H
|
||||||
|
|
||||||
|
int do_nothing(void);
|
||||||
|
|
||||||
|
#endif
|
||||||
10
libft_ssl.pc.in
Normal file
10
libft_ssl.pc.in
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: libft_ssl
|
||||||
|
Description: idk
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Libs: -L${libdir} -lft_ssl
|
||||||
|
Cflags: -I${includedir}
|
||||||
8
src/Makefile.am
Normal file
8
src/Makefile.am
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
lib_LTLIBRARIES = libft_ssl.la
|
||||||
|
|
||||||
|
libft_ssl_la_SOURCES = libft_ssl.c
|
||||||
|
|
||||||
|
AM_CFLAGS = -std=c99 $(STRICT_CFLAGS)
|
||||||
|
libft_ssl_la_CPPFLAGS = -I$(top_srcdir)/include
|
||||||
|
|
||||||
|
libft_ssl_la_LDFLAGS = -version-info 0:0:0
|
||||||
6
src/libft_ssl.c
Normal file
6
src/libft_ssl.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
int
|
||||||
|
do_nothing(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue