]> git.cworth.org Git - ttt/blob - src/Makefile.am
2005-12-08 Carl Worth <cworth@cworth.org>
[ttt] / src / Makefile.am
1 bin_PROGRAMS = ttt-server ttt-client ttt-curses-client
2 noinst_PROGRAMS = test-board
3
4 ttt_common_sources =            \
5         ttt-args.c              \
6         ttt-args.h              \
7         ttt-board.c             \
8         ttt-board.h             \
9         ttt-error.c             \
10         ttt-error.h             \
11         ttt-lex.l               \
12         ttt-lex.h               \
13         ttt-socket.c            \
14         ttt-socket.h            \
15         x.c                     \
16         x.h
17
18 AM_LFLAGS = --header=ttt-lex.h -Cr
19 ttt-lex.h: ttt-lex.l
20         $(SHELL) $(YLWRAP) $< $@ $@ -- $(LEXCOMPILE)
21
22 ttt_client_SOURCES =            \
23         $(ttt_common_sources)   \
24         ttt.c
25
26 ttt_server_SOURCES =            \
27         $(ttt_common_sources)   \
28         ttt-client.c            \
29         ttt-server.c
30
31 test_board_SOURCES =            \
32         $(ttt_common_sources)   \
33         test-board.c
34
35 ttt_curses_client_SOURCES =     \
36         $(ttt_common_sources)   \
37         curses.h                \
38         ttt-curses-client.c
39
40 AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS)
41 ttt_client_LDFLAGS = $(TTT_LIBS)
42 ttt_server_LDFLAGS = $(TTT_LIBS) -lpthread
43 test_board_LDFLAGS = $(TTT_LIBS)
44 ttt_curses_client_LDFLAGS = $(TTT_LIBS) -lncurses