]> git.cworth.org Git - ttt/blob - src/Makefile.am
Add a dependency of ttt-client.c on ttt-lex.h to fix the build.
[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.c: ttt-lex.h
23
24 ttt_client_SOURCES =            \
25         $(ttt_common_sources)   \
26         ttt.c
27
28 ttt_server_SOURCES =            \
29         $(ttt_common_sources)   \
30         ttt-client.c            \
31         ttt-server.c
32
33 test_board_SOURCES =            \
34         $(ttt_common_sources)   \
35         test-board.c
36
37 ttt_curses_client_SOURCES =     \
38         $(ttt_common_sources)   \
39         curses.h                \
40         ttt-curses-client.c
41
42 AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS)
43 ttt_client_LDFLAGS = $(TTT_LIBS)
44 ttt_server_LDFLAGS = $(TTT_LIBS) -lpthread
45 test_board_LDFLAGS = $(TTT_LIBS)
46 ttt_curses_client_LDFLAGS = $(TTT_LIBS) -lncurses