aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: a2817d3f8eabfbad651613c057264373b79d5bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
bin_PROGRAMS = calculer
AM_CFLAGS = -Wall -Wextra
AM_LDFLAGS =
calculer_SOURCES = calculer.c disp.c

if DEBUG_COND
noinst_LTLIBRARIES = ray.la
ray_la_SOURCES = ray.c
ray_la_LDFLAGS = -module -rpath @abs_srcdir@ -lraylib
else
AM_CFLAGS += -DNDEBUG -Wno-unused-variable
endif

if USE_READLINE_COND
AM_LDFLAGS += -lreadline
else
calculer_SOURCES += linenoise.c
AM_CFLAGS += -I../linenoise/
BUILT_SOURCES: linenoise.c
linenoise.c:
	cp ../linenoise/linenoise.c .
endif