From bd34b7db765abde3f310406f74899b813a7d85b1 Mon Sep 17 00:00:00 2001 From: ZiHang Gao Date: Tue, 28 Nov 2017 15:51:03 +0800 Subject: [PATCH] Fixed required file 'src/Makefile.in' not found --- src/Makefile.am | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..497273d --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,16 @@ +sbin_PROGRAMS = rinetd +rinetd_SOURCES = rinetd.c rinetd.h parse.c parse.h match.c match.h net.c net.h + +GENERATED_SOURCES = parse.c + +# If peg/leg is available, regenerate parse.h +parse.c: parse.peg + if which leg >/dev/null 2>&1; then leg -o $@ $^; else touch $@; fi + +# _POSIX_C_SOURCE is for SA_RESTART and others +# _XOPEN_SOURCE is for struct sigaction +# _GNU_SOURCE is for h_errno and gethostbyname-related macros +rinetd_CFLAGS = -std=c99 -D_XOPEN_SOURCE -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -Wall -Wextra -Wwrite-strings -I. + +# This is for Travis CI; we don’t have a testsuite yet. +test: