Browse Source

Move header file to a separate directory.

primary
CismonX 4 months ago
parent
commit
8e97e21ccf
Signed by: CismonX GPG Key ID: 3094873E29A482FB
  1. 2
      INSTALL.md
  2. 2
      Makefile.am
  3. 2
      configure.ac
  4. 3
      examples/Makefile.am
  5. 9
      include/Makefile.am
  6. 0
      include/ctlseqs.h
  7. 6
      src/Makefile.am
  8. 2
      tests/Makefile.am

2
INSTALL.md

@ -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.

2
Makefile.am

@ -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

2
configure.ac

@ -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

3
examples/Makefile.am

@ -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

@ -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

0
src/ctlseqs.h → include/ctlseqs.h

6
src/Makefile.am

@ -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

2
tests/Makefile.am

@ -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

Loading…
Cancel
Save