mirror of
https://github.com/samhocevar/rinetd.git
synced 2025-03-22 15:50:08 +08:00
Merge branch 'master' into feature-ipv6-support
This commit is contained in:
commit
0ea83281e3
27
src/Makefile.am
Normal file
27
src/Makefile.am
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
EXTRA_DIST = parse.peg getopt.c getopt.h
|
||||||
|
|
||||||
|
sbin_PROGRAMS = ../rinetd
|
||||||
|
___rinetd_SOURCES = rinetd.c rinetd.h \
|
||||||
|
parse.c parse.h \
|
||||||
|
match.c match.h \
|
||||||
|
net.c net.h \
|
||||||
|
types.h
|
||||||
|
|
||||||
|
BUILT_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
|
||||||
|
|
||||||
|
# If roffit is available, regenerate index.html
|
||||||
|
index.html: rinetd.8
|
||||||
|
if which roffit >/dev/null 2>&1; then roffit < $^ > $@; 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user