aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: dc4e4c4963fecf7a25a484b58259af3039bf82f5 (plain) (blame)
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
# This Makefile.am is in the public domain

SUBDIRS = ui

bin_PROGRAMS = messenger-cli

messenger_cli_SOURCES = \
  application.c application.h \
  chat.c chat.h \
  util.c util.h \
  messenger_cli.c

messenger_cli_LDADD = \
  ui/libui.a

messenger_cli_LDFLAGS = \
  -lgnunetchat \
  -lgnunetutil \
  -lncurses

messenger_cli_CFLAGS = \
  -pedantic -Wall -Wextra -Wno-overlength-strings

if DEBUG
messenger_cli_CFLAGS += \
  -O0 -D _DEBUG -ggdb3
else
messenger_cli_CFLAGS += \
  -O2 -D NDEBUG
endif