# Generated automatically from Imakefile.in by configure.
/* Imakefile.in -- configure generates Imakefile from this		*/
/*
 * Copyright (c) 1993  Leon Avery
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2, or (at
 * your option) any later version.
 *
 * This program 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
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * Send questions or comments on xdatplot to:
 *
 * Leon Avery
 * Department of Biochemistry
 * University of Texas Southwestern Medical Center
 * 5323 Harry Hines Blvd
 * Dallas, TX  75235-9038
 *
 * leon@eatworms.swmed.edu
 */

/* Some stuff to make motif work					*/

      MOTIF_HEADERS = 
         MOTIF_LIBS = -lXm -lXt -lX11
INCLUDES= $(X_INCLUDES) $(MOTIF_HEADERS) $(EXTRAINCLUDES)
SYS_LIBRARIES = $(BINDING) -lm $(X_LIBRARIES) $(MOTIF_LIBS)

#ifndef	TOPDIR
#ifdef	ProjectRoot
#define	TOPDIR ProjectRoot/lib
#else
#define	TOPDIR /usr/lib/X11
#endif
#endif
/* make TAGS for emacs							*/

#ifdef	TagsCmd
#undef	TagsCmd
#endif
#define	TagsCmd	etags

             TAGS = TagsCmd

#ifdef	TagsTarget
#undef	TagsTarget
#endif
/*
 * TagsTarget - generate rules to compute tags files for C source code.
 */
#define	TagsTarget()							@@\
tags::									@@\
	$(TAGS) *.[ch] > TAGS						@@\

	     srcdir = .
	      VPATH = .
	   PROGRAMS = xdatplot asc2bin
	    SCRIPTS = print_big
	   WARNINGS = -W -Winline -Wcomment -Wformat
	CDEBUGFLAGS = -g $(OPT) $(WARNINGS) -finline -finline-functions
      EXTRAINCLUDES =
    LOCAL_LIBRARIES = lalib.o
       INSTPGMFLAGS = -s
       INSTAPPFLAGS = -c -m 644

	     BINDIR = /usr/local/bin

           SRCS1 = xdatplot.c files.c mainw.c fildialog.c control.c \
		   plot.c help.c marks.c mif.c ps.c conversion.c filter.c \
		   units.c xdp.c peaks.c Vt.c run.c
           OBJS1 = xdatplot.o files.o mainw.o fildialog.o control.o \
		   plot.o help.o marks.o mif.o ps.o conversion.o filter.o \
		   units.o xdp.o peaks.o Vt.o run.o lalib.o

all::	$(PROGRAMS)

distclean: clean
	$(RM) $(PROGRAMS) file2c
	(cd help; $(RM_CMD) "#"*)

CleanTarget()

InstallMultiple($(PROGRAMS) $(SCRIPTS), $(BINDIR))

NormalProgramTarget(file2c, file2c.o, lalib.o, lalib.o, )

fallback.h:	XDatplot.ad file2c
	rm -f fallback.h
	./file2c fallback <XDatplot.ad >fallback.h

NormalProgramTarget(asc2bin, asc2bin.o, lalib.o, lalib.o, )

ComplexProgramTarget_1(xdatplot, -lm, $(SYS_LIBRARIES))

install.ad:: XDatplot.ad
		 MakeDir($(DESTDIR)$(XAPPLOADDIR))
	$(INSTALL) $(INSTAPPFLAGS) XDatplot.ad $(DESTDIR)$(XAPPLOADDIR)/XDatplot

/*
Makefile::	Imakefile
	(cd $(srcdir); xmkmf -a)
*/

Imakefile:	Imakefile.in config.status
	$(SHELL) config.status

config.status:	configure
	$(SHELL) config.status --recheck

config.h:	config.h.in config.status
	$(SHELL) config.status

configure:	configure.in
	cd $(srcdir); autoconf

DependTarget()
