Reuse the tio_SOURCES variable in src/Makefile.am

The only difference between `tio` and `tionc`
is the compile time flag 'TIO_NOCOLOR'.
This commit is contained in:
Geert Stappers 2022-02-05 22:19:00 +01:00 committed by Geert Stappers
parent fc79fea777
commit 6ce0d5b84b

View file

@ -14,26 +14,14 @@ tio_SOURCES = tty.c \
include/tio/log.h \
include/tio/error.h
tionc_SOURCES = tty.c \
options.c \
time.c \
main.c \
log.c \
error.c \
include/tio/tty.h \
include/tio/options.h \
include/tio/time.h \
include/tio/print.h \
include/tio/log.h \
include/tio/error.h
tionc_CFLAGS = -D TIO_NOCOLOR
if ADD_SETSPEED2
tio_SOURCES += setspeed2.c
tionc_SOURCES += setspeed2.c
endif
tionc_SOURCES = $(tio_SOURCES)
tionc_CFLAGS = -D TIO_NOCOLOR
if ENABLE_BASH_COMPLETION
bashcompletiondir=@BASH_COMPLETION_DIR@
bashcompletion_DATA=bash-completion/tio