1# 2# $Header: /cvsroot/lesstif/lesstif/test/Xm/mainw/Makefile.am,v 1.34 2008/01/02 19:48:21 dannybackx Exp $ 3# 4MAINTAINERCLEANFILES=Makefile.in 5 6AUX_OBJS = 7noinst_PROGRAMS= test1 test2 test3 test4 test5 test6 test7 test8 \ 8 test9 test10 test11 test12 test13 test14 test15 test16 \ 9 test17 test18 10 11LTTEST = $(top_builddir)/common/libLtTest.a 12 13 14LDADD = $(AUX_OBJS) \ 15 $(LTTEST) \ 16 $(top_builddir)/../lib/Xm$(version_suffix)/libXm.la $(XPLIB) \ 17 ${X_LIBS} -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} 18 19AM_CPPFLAGS= -I$(top_srcdir)/../include/Motif$(include_version_suffix) \ 20 -I$(top_builddir)/../include/Motif$(include_version_suffix) \ 21 -I$(top_srcdir)/../include/Motif-1.2 \ 22 -I$(top_builddir)/../include/Motif-1.2 \ 23 $(X_CFLAGS) 24 25$(LTTEST): 26 ( cd $(top_builddir)/common ; $(MAKE) ) 27 28SUFFIXES = .motif .mo 29 30if MotifTests 31 32motif_TESTS = $(OBJECTS:.o=.motif) 33 34.c.mo: 35 $(CC) $(DEFS) $(MOTIF_CFLAGS) $(X_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $< 36 37.mo.motif: 38 ${LINK} $< $(AUX_OBJS) @MOTIF_LIBS@ $(LTTEST) ${X_LIBS} -lXm -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} 39 40motif-tests: ${motif_TESTS} 41 42${motif_TESTS}: $(AUX_OBJS) 43 44endif 45clean-local: 46 rm -rf *.motif *.mo LessTif LessTif.sum LessTif.log site.exp xlab/*.p* 47