1#
2# $Header: /cvsroot/lesstif/lesstif/test/Xm/pushbutton/Makefile.am,v 1.35 2008/01/02 19:48:22 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 test19 test20
10
11LTTEST  = $(top_builddir)/common/libLtTest.a
12
13LDADD	= $(AUX_OBJS)  \
14	  $(LTTEST)  \
15	  $(top_builddir)/../lib/Xm$(version_suffix)/libXm.la $(XPLIB) \
16	  ${X_LIBS} -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}
17
18AM_CPPFLAGS= -I$(top_srcdir)/../include/Motif$(include_version_suffix)  \
19	  -I$(top_builddir)/../include/Motif$(include_version_suffix)  \
20	  -I$(top_srcdir)/../include/Motif-1.2  \
21	  -I$(top_builddir)/../include/Motif-1.2  \
22	  $(X_CFLAGS)
23
24$(LTTEST):
25	( cd $(top_builddir)/common ; $(MAKE) )
26
27SUFFIXES = .motif .mo
28
29if MotifTests
30
31motif_TESTS = $(OBJECTS:.o=.motif)
32
33.c.mo:
34	$(CC) $(DEFS) $(MOTIF_CFLAGS) $(X_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<
35
36.mo.motif:
37	${LINK} $< $(AUX_OBJS) @MOTIF_LIBS@ $(LTTEST) ${X_LIBS} -lXm -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}
38
39motif-tests: ${motif_TESTS}
40
41${motif_TESTS}: $(AUX_OBJS)
42
43endif
44clean-local:
45	rm -rf *.motif *.mo LessTif LessTif.sum LessTif.log site.exp xlab/*.p*
46