# Copyright (C) 1994 - 1996 
#            Olav Woelfelschneider (wosch@rbg.informatik.th-darmstadt.de)
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Library General Public License as
#  published by the Free Software Foundation; either version 2 of the
#  License, or (at your option) any later version.
#
#  This library is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  Library General Public License for more details.
#
#  You should have received a copy of the GNU Library General Public
#  License along with this library; see the file COPYING.LIB.  If
#  not, write to the Free Software Foundation, Inc., 675 Mass Ave,
#  Cambridge, MA 02139, USA.
#
#
# Imakefile for libMcTools
#

###############################################################################
#
# No user servicable parts below
#

#include "../config.h"
#include "local.h"

EXTRA_INCLUDES  =	-I..

SRCS	 =	McApp.c McResource.c McGadget.c McFocus.c McText.c McBitmap.c \
		McSlider.c McMenu.c McOrder.c McDigits.c McString.c \
		McSelector.c McDebug.c McUtils.c McFileRequest.c \
		McViewText.c McLoad.c McInfoRequest.c McChoice.c McMenubar.c \
		McSelection.c McBuffer.c McMeter.c McKnob.c McViewBitmap.c \
		McTip.c McRadio.c McCheckBox.c

OBJS	 =	McApp.o McResource.o McGadget.o McFocus.o McText.o McBitmap.o \
		McSlider.o McMenu.o McOrder.o McDigits.o McString.o \
		McSelector.o McDebug.o McUtils.o McFileRequest.o \
		McViewText.o McLoad.o McInfoRequest.o McChoice.o McMenubar.o \
		McSelection.o McBuffer.o McMeter.o McKnob.o McViewBitmap.o \
		McTip.o McRadio.o McCheckBox.o

MSGS	=	de.mo

REVISION =	1.0
LIBNAME	 =	McTools

EXTRA_DEFINES = -DRESOURCE_PATH="\"$(XAPPLOADDIR)/\""

#if defined(__ELF__) && defined(BUILD_ELF_SHARED_LIBRARY)

XCOMM ELF
SharedLibraryTarget($(LIBNAME),$(REVISION),$(OBJS),.,.)

.c.Osuf:
	NormalSharedLibObjCompile()

InstallSharedLibrary($(LIBNAME),$(REVISION),$(SHLIBDIR))

install::
	-(cd $(SHLIBDIR); \
          RemoveFile(lib$(LIBNAME).so) && \
          $(LN) lib$(LIBNAME).so.$(REVISION) lib$(LIBNAME).so; /sbin/ldconfig)

#else

XCOMM STATIC
NormalLibraryTarget($(LIBNAME),$(OBJS))

install:: lib$(LIBNAME).a

#endif

clean::
	rm -f lib$(LIBNAME).so*  lib$(LIBNAME).a

InstallNamedTarget(install.include,*.h,,$(INCROOT)/$(LIBNAME),)

McInstallMessageTarget($(MSGS),$(LIBNAME))

DependTarget()







