1# 2# $Header: /cvsroot/lesstif/lesstif/test/Xm-2.0/messages/Makefile.am,v 1.11 2008/01/02 19:48:24 dannybackx Exp $ 3# 4MAINTAINERCLEANFILES=Makefile.in 5 6AUX_OBJS = 7 8EXTRA_DIST = test1.c test2.c tif20.h 9 10if Version_2_0 11 12noinst_PROGRAMS = test1 test2 13 14else 15 16noinst_PROGRAMS = 17 18endif 19 20test1_SOURCES = test1.c tif20.h 21 22test2_SOURCES = test2.c tif20.h 23 24LTTEST = $(top_builddir)/common/libLtTest.a 25 26LDADD = $(AUX_OBJS) \ 27 $(LTTEST) \ 28 $(top_builddir)/../lib/Xm$(version_suffix)/libXm.la $(XPLIB) \ 29 ${X_LIBS} -lXt ${X_PRE_LIBS} -lXtst -lX11 ${X_EXTRA_LIBS} 30 31AM_CPPFLAGS= -I$(top_srcdir)/../include/Motif$(include_version_suffix) \ 32 -I$(top_builddir)/../include/Motif$(include_version_suffix) \ 33 -I$(top_srcdir)/../include/Motif-1.2 \ 34 -I$(top_builddir)/../include/Motif-1.2 \ 35 $(X_CFLAGS) 36 37$(LTTEST): 38 ( cd $(top_builddir)/common ; $(MAKE) ) 39 40SUFFIXES = .motif .mo 41 42clean-local: 43 rm -rf *.motif *.mo LessTif LessTif.sum LessTif.log site.exp xlab/*.p* 44 45if MotifTests 46 47motif_TESTS = $(OBJECTS:.o=.motif) 48 49.c.mo: 50 $(CC) $(DEFS) $(MOTIF_CFLAGS) $(X_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $< 51 52.mo.motif: 53 ${LINK} $< $(AUX_OBJS) @MOTIF_LIBS@ $(LTTEST) ${X_LIBS} -lXm -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} 54 55motif-tests: ${motif_TESTS} 56 57${motif_TESTS}: $(AUX_OBJS) 58 59endif 60