Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions tiny-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# Hand-rolled build dir (legacy, kept for any in-flight bare-make users)
build/

# Object files
*.o
*.a

# Autotools generated
Makefile
Makefile.in
configure
config.h
config.h.in
config.log
config.status

# Autoreconf --force backup files (and any editor backups)
*~
aclocal.m4
autom4te.cache/
build-aux/
m4/
stamp-h1
.deps/
.libs/

# Built binary
pty_test

# Dist tarballs and distcheck temp dirs
*.tar.gz
*.tar.bz2
*.tar.xz
tiny-agent-*/
19 changes: 0 additions & 19 deletions tiny-agent/Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions tiny-agent/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SUBDIRS = src

EXTRA_DIST = autogen.sh
2 changes: 2 additions & 0 deletions tiny-agent/autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec autoreconf --install --force --verbose
22 changes: 22 additions & 0 deletions tiny-agent/configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
AC_PREREQ([2.69])
AC_INIT([tiny-agent], [0.1.0], [https://github.com/vivekvjnk/tiny-agent/issues])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/pty.c])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE([1.15 foreign subdir-objects -Wall -Werror])
AM_SILENT_RULES([yes])

AC_PROG_CC
AC_PROG_INSTALL

# PTY support
AC_CHECK_HEADER([pty.h], [], [AC_MSG_ERROR([pty.h not found])])
AC_CHECK_LIB([util], [forkpty], [],
[AC_MSG_ERROR([libutil with forkpty() not found])])

AC_CONFIG_FILES([
Makefile
src/Makefile
])
AC_OUTPUT
4 changes: 4 additions & 0 deletions tiny-agent/src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AM_CFLAGS = -Wall -Wextra -std=c99

bin_PROGRAMS = pty_test
pty_test_SOURCES = pty.c