bin_PROGRAMS = calculer AM_CFLAGS = -Wall -Wextra calculer_CFLAGS = $(AM_CFLAGS) AM_LDFLAGS = calculer_SOURCES = calculer.c disp.c if DEBUG_COND noinst_LTLIBRARIES = ray.la ray_la_SOURCES = ray.c calc_data.c input.c ray_la_LDFLAGS = -module -rpath @abs_srcdir@ -lraylib noinst_LTLIBRARIES += cli.la cli_la_SOURCES = cli.c cli_la_LDFLAGS = -module -rpath @abs_srcdir@ noinst_LTLIBRARIES += tui.la tui_la_SOURCES = tui.c calc_data.c input.c tui_la_LDFLAGS = -module -rpath @abs_srcdir@ -lncurses if USE_READLINE_COND cli_la_LDFLAGS += -lreadline else # USE_READLINE_COND EXTRA_cli_la_SOURCES = linenoise.c cli_la_AM_CFLAGS = -I../linenoise/ BUILT_SOURCES: linenoise_lib.c linenoise_lib.c: cp ../linenoise/linenoise.c ./$@ endif # USE_READLINE_COND else # DEBUG_COND AM_CFLAGS += -DNDEBUG calculer_SOURCES += calc_data.c input.c cli.c tui.c ray.c AM_LDFLAGS += -lncurses if USE_READLINE_COND AM_LDFLAGS += -lreadline else # USE_READLINE_COND calculer_SOURCES += linenoise.c AM_CFLAGS += -I../linenoise/ BUILT_SOURCES: linenoise.c linenoise.c: cp ../linenoise/linenoise.c ./$@ endif # USE_READLINE_COND endif # DEBUG_COND