#
# $Header: /cvsroot/hungry/lesstif/test/Xm/mainw/Makefile.am,v 1.9 1998/03/25 03:55:44 rwscott Exp $
#
MAINTAINERCLEANFILES=Makefile.in

AUX_OBJS =
noinst_PROGRAMS= test1  test2  test3  test4  test5  test6  test7  test8  test9 \
                 test10 test11 test12

LDADD	= $(AUX_OBJS) \
	  $(top_builddir)/lib/Xm$(version_suffix)/.libs/libXm.so \
	  @X_LIBS@ -lXt -lX11
CFLAGS	= -g @X_CFLAGS@
LDFLAGS	= -g
INCLUDES= -I$(top_srcdir)/include/Motif$(include_version_suffix) \
	  -I$(top_builddir)/include/Motif$(include_version_suffix) \
	  -I$(top_srcdir)/include/Motif-1.2 \
	  -I$(top_builddir)/include/Motif-1.2

SUFFIXES= .motif

if MotifTests

motif_TESTS = $(OBJECTS:.o=.motif)

.o.motif:
	${LINK} -o ${@} $< $(AUX_OBJS) -L@motif_libraries@ -lXm @X_LIBS@ -lXt -lX11

motif-tests: ${motif_TESTS}

${motif_TESTS}: $(AUX_OBJS)

clean-local:
	rm -f *.motif
endif
