X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2FMakefile.am;h=1d5de3f7669f20af0daa85e2f09edf2e73266f81;hp=b7bce5028b59caf92dcb9c4afe43542753bb28cd;hb=f2187ebd49f78b84bd2dca6172abc81e54dda199;hpb=52bff07c451d6f5fbb2d9dd4f76f41479ba3c323 diff --git a/src/Makefile.am b/src/Makefile.am index b7bce50..1d5de3f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,9 +1,35 @@ -bin_PROGRAMS = ttt +bin_PROGRAMS = ttt-server ttt-client +noinst_PROGRAMS = test-board -ttt_SOURCES = \ - args.c \ - args.h \ +ttt_common_sources = \ + ttt-args.c \ + ttt-args.h \ + ttt-board.c \ + ttt-board.h \ + ttt-error.c \ + ttt-error.h \ + ttt-lex.l \ + ttt-socket.c \ + ttt-socket.h \ + x.c \ + x.h + +ttt_client_SOURCES = \ + $(ttt_common_sources) \ ttt.c +ttt_server_SOURCES = \ + $(ttt_common_sources) \ + ttt-client.c \ + ttt-server.c + +test_board_SOURCES = \ + $(ttt_common_sources) \ + test-board.c + AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS) -ttt_LDFLAGS = $(TTT_LIBS) +AM_LFLAGS = --header-file=ttt-lex.h -Cr +ttt_client_LDFLAGS = $(TTT_LIBS) +ttt_server_LDFLAGS = $(TTT_LIBS) -lpthread +test_board_LDFLAGS = $(TTT_LIBS) +