Move header file to a separate directory.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2021-02-20 12:38:42 +08:00
parent 164b3601a3
commit 8e97e21ccf
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
8 changed files with 18 additions and 8 deletions

View File

@ -10,7 +10,7 @@ this notice are preserved. This file is offered as-is, without any warranty.
## Copy Code to Your Project
The code of ctlseqs is simple, and can be used out-of-the-box. Just copy [ctlseqs.h](src/ctlseqs.h) and [ctlseqs.c](src/ctlseqs.c) to your project and build it alongside with other code.
The code of ctlseqs is simple, and can be used out-of-the-box. Just copy [ctlseqs.h](include/ctlseqs.h) and [ctlseqs.c](src/ctlseqs.c) to your project and build it alongside with other code.
Requires an ISO C99 and POSIX.1-2001 compliant C implementation.

View File

@ -6,4 +6,4 @@
# this notice are preserved. This file is offered as-is, without any warranty.
#
SUBDIRS = src doc man tests examples
SUBDIRS = include src doc man tests examples

View File

@ -50,5 +50,5 @@ m4_define([CTLSEQS_LT_REVISION], [0])
m4_define([CTLSEQS_LT_AGE], [0])
AC_SUBST([CTLSEQS_LT_VERSION], [CTLSEQS_LT_CURRENT:CTLSEQS_LT_REVISION:CTLSEQS_LT_AGE])
AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile examples/Makefile])
AC_CONFIG_FILES([Makefile include/Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile examples/Makefile])
AC_OUTPUT

View File

@ -6,7 +6,8 @@
# this notice are preserved. This file is offered as-is, without any warranty.
#
AM_CPPFLAGS = -I$(top_srcdir)/src
AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = sixdraw
sixdraw_SOURCES = sixdraw.c
sixdraw_LDADD = $(top_srcdir)/src/libctlseqs.la

9
include/Makefile.am Normal file
View File

@ -0,0 +1,9 @@
#
# Copyright (C) 2021 CismonX <admin@cismon.net>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty, provided the copyright notice and
# this notice are preserved. This file is offered as-is, without any warranty.
#
include_HEADERS = ctlseqs.h

View File

@ -6,8 +6,8 @@
# this notice are preserved. This file is offered as-is, without any warranty.
#
AM_CPPFLAGS = -I$(top_srcdir)/include
AM_LDFLAGS = -version-info $(CTLSEQS_LT_VERSION)
lib_LTLIBRARIES = libctlseqs.la
libctlseqs_la_SOURCES = ctlseqs.c
libctlseqs_la_LDFLAGS = -version-info $(CTLSEQS_LT_VERSION)
include_HEADERS = ctlseqs.h

View File

@ -7,7 +7,7 @@
#
AUTOMAKE_OPTIONS = dejagnu
AM_CPPFLAGS = -I$(top_srcdir)/src
AM_CPPFLAGS = -I$(top_srcdir)/include
noinst_PROGRAMS = tcsgrep
tcsgrep_SOURCES = tcsgrep.c