-bin_PROGRAMS = ttt
+bin_PROGRAMS = ttt-server ttt-client
-ttt_SOURCES = \
- args.c \
- args.h \
- ttt.c
+ttt_common_sources = \
+ ttt-args.c \
+ ttt-args.h \
+ ttt-board.c \
+ ttt-board.h \
+ ttt-command.c \
+ ttt-command.h \
+ ttt-error.c \
+ ttt-error.h \
+ x.c \
+ x.h
+
+ttt_client_SOURCES = \
+ $(ttt_common_sources) \
+ ttt-client.c
+
+ttt_server_SOURCES = \
+ $(ttt_common_sources) \
+ ttt-server.c
AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS)
-ttt_LDFLAGS = $(TTT_LIBS)
+ttt_client_LDFLAGS = $(TTT_LIBS)
+ttt_server_LDFLAGS = $(TTT_LIBS)