#
# $Header: /cvsroot/lesstif/lesstif/lib/Mrm-2.0/Makefile.am,v 1.35 2005/03/26 06:52:26 dannybackx Exp $
#
MAINTAINERCLEANFILES=Makefile.in

libMrm_la_LDFLAGS= -version-info 2:0 -no-undefined
libdir = $(exec_prefix)/lib

#
# Sources in this directory
#
SRCS_2_0 =

libMrm_la_SOURCES= ${SRCS_2_0}
nodist_libMrm_la_SOURCES= ${SRCS_1_2:%=../Mrm/%}

if Version_2_0

#
# Sources in another directory
#
SRCS_1_2 = \
	Mrm.c lookup.c misc.c \
        Mrm.h lookup.h misc.h uil.h

#
# This is for cleanup purposes.
# Could be in the 2.0 case only, but let's clean up at all times.
#
#BUILT_SOURCES=	$(SRCS_1_2)

AM_CPPFLAGS= \
          -I$(top_srcdir)/include/Motif-2.0 \
          -I$(top_builddir)/include/Motif-2.0 \
          -I$(top_srcdir)/include/Motif-1.2 \
          -I$(top_builddir)/include/Motif-1.2 \
          -I$(top_srcdir)/include \
          -I$(top_builddir)/include \
	  -I$(top_srcdir)/lib/Mrm \
          ${X_CFLAGS} \
          -DX_LIB_PATH=\"@x_libraries@\" \
          -DLESSTIFHOME=\"@prefix@\"

lib_LTLIBRARIES= libMrm.la

#libMrm_la_LIBADD = ../Xm-2.0/libXm.la


# What was the purpose of that rule/dependency?
#${SRCS_1_2}: ${HDRS_1_2}

$(SRCS_1_2):
	rm -f $@
	$(LN_S) $(srcdir)/../Mrm/$@ $@
endif

clean-local:
if Version_2_0
	@for i in $(SRCS_1_2) ; do \
	   if test -r $$i; then \
	      rm $$i; \
	   fi ; \
	  done
endif
