blob: d8f645734d28c6a2af0e7784c040fd577da09c3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
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 -Wno-unused-variable
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
|