1#
2# $Header: /cvsroot/lesstif/lesstif/test/Xm/cascadebuttong/Makefile.am,v 1.33 2008/01/02 19:48:20 dannybackx Exp $
3#
4MAINTAINERCLEANFILES=Makefile.in
5
6AUX_OBJS =
7noinst_PROGRAMS = test1  test2  test3  test4  test5  test6  test7
8
9LTTEST  = $(top_builddir)/common/libLtTest.a
10
11LDADD	= $(AUX_OBJS)  \
12	  $(LTTEST)  \
13	  $(top_builddir)/../lib/Xm$(version_suffix)/libXm.la $(XPLIB) \
14	  ${X_LIBS} -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}
15
16AM_CPPFLAGS= -I$(top_srcdir)/../include/Motif$(include_version_suffix)  \
17	  -I$(top_builddir)/../include/Motif$(include_version_suffix)  \
18	  -I$(top_srcdir)/../include/Motif-1.2  \
19	  -I$(top_builddir)/../include/Motif-1.2  \
20	  $(X_CFLAGS)
21
22$(LTTEST):
23	( cd $(top_builddir)/common ; $(MAKE) )
24
25SUFFIXES = .motif .mo
26
27clean-local:
28	rm -rf *.motif *.mo LessTif LessTif.sum LessTif.log site.exp xlab/*.p*
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)
43endif
44