1#
2# $Header: /cvsroot/lesstif/lesstif/test/extra/daniel/Makefile.am,v 1.4 2008/01/02 19:48:24 dannybackx Exp $
3#
4MAINTAINERCLEANFILES=Makefile.in
5
6AUX_OBJS = Dnd.o Target.o
7noinst_PROGRAMS= test1
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} -lXaw -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
27noinst_HEADERS = Dnd.h DndP.h
28EXTRA_DIST = Dnd.c Target.c
29
30clean-local:
31	rm -rf *.motif *.mo LessTif LessTif.sum LessTif.log site.exp xlab/*.p*
32if MotifTests
33
34motif_TESTS = $(OBJECTS:.o=.motif)
35
36.c.mo:
37	$(CC) $(DEFS) $(MOTIF_CFLAGS) $(X_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<
38
39.mo.motif:
40	${LINK} $< $(AUX_OBJS) @MOTIF_LIBS@ $(LTTEST) ${X_LIBS} -lXm -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS}
41
42motif-tests: ${motif_TESTS}
43
44${motif_TESTS}: $(AUX_OBJS)
45endif
46