EXTRA_DIST =
EXTRA_LIBRARIES =
MAINTAINERCLEANFILES =
+MOSTLYCLEANFILES =
DISTCLEANFILES =
CLEANFILES = $(EXTRA_LIBRARIES)
-AM_CPPFLAGS = -I$(builddir)/src -I$(srcdir)/src -I$(DX_BASEDIR)/src
+AM_CPPFLAGS = -I$(builddir)/src -I$(srcdir)/src -I$(DX_BASEDIR)/src \
+ -I$(builddir)/lib -I$(srcdir)/lib
AM_CFLAGS = $(MOTIF_CFLAGS)
bin_PROGRAMS = rrace-motif
rrace_motif_SOURCES = src/game.c src/x11.c
rrace_motif_LDADD = $(libmotifmain_a_OBJECTS) $(libmotifui_a_OBJECTS) \
- $(libglohelp_a_OBJECTS) $(MOTIF_LIBS)
+ $(libglohelp_a_OBJECTS) libgnu.a $(MOTIF_LIBS)
+$(rrace_motif_OBJECTS): $(gnulib_headers)
EXTRA_LIBRARIES += libmotifmain.a
libmotifmain_a_SOURCES = src/motif.c
+$(libmotifmain_a_OBJECTS): $(gnulib_headers)
$(libmotifmain_a_OBJECTS): src/motifopt.h
EXTRA_LIBRARIES += libmotifui.a
libmotifui_a_SOURCES = src/motif_ui.c
+$(libmotifui_a_OBJECTS): $(gnulib_headers)
$(libmotifui_a_OBJECTS): src/motifgui.h src/motifstr.h
EXTRA_LIBRARIES += libglohelp.a
libglohelp_a_SOURCES = common/src/help.c
libglohelp_a_CFLAGS = -DHELP_GETOPT_LONG_ONLY
+$(libglohelp_a_OBJECTS): $(gnulib_headers)
libglohelp_a_SHORTNAME = glo
OPTFILES = src/motifopt.opt
check_PROGRAMS = t/boardmove t/rng-test
-t_boardmove_LDADD = src/game.$(OBJEXT)
+t_boardmove_LDADD = src/game.$(OBJEXT) libgnu.a
+$(t_boardmove_OBJECTS): $(gnulib_headers)
+include $(top_srcdir)/lib/gnulib.mk
include $(top_srcdir)/common/snippet/autotest.mk