#  Imakefile -- Imakefile for ghostview.
#  Copyright (C) 1992  Timothy O. Theisen
# 
#  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 of the License, 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.
# 
#    Author: Tim Theisen           Systems Programmer
#  Internet: tim@cs.wisc.edu       Department of Computer Sciences
#      UUCP: uwvax!tim             University of Wisconsin-Madison
#     Phone: (608)262-0438         1210 West Dayton Street
#       FAX: (608)262-9777         Madison, WI   53706

#define Use_SelFile

#ifdef Use_SelFile
           SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
                  Ghostview.c ps.c getenv.c setenv.c strcasecmp.c \
                  SelFile.c Dir.c Path.c Draw.c
           OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
                  Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \
                  SelFile.o Dir.o Path.o Draw.o
 SELFILE_DEFINE = -DSELFILE -DHOME_ON_DEMAND
#else
           SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
                  Ghostview.c ps.c getenv.c setenv.c strcasecmp.c
           OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
                  Ghostview.o ps.o getenv.o setenv.o strcasecmp.o
 SELFILE_DEFINE =
#endif

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
  SYS_LIBRARIES = -lm

        DEFINES = -DNON_BLOCKING_IO $(SIGNAL_DEFINES) $(SELFILE_DEFINE)

.NOEXPORT:

AllTarget(ghostview)

depend:: Ghostview.ad.h

ComplexProgramTarget(ghostview)
InstallAppDefaults(Ghostview)

main.o: Ghostview.ad.h

Ghostview.ad.h:	Ghostview.ad
	./ad2c Ghostview.ad > Ghostview.ad.h

clean::
	$(RM) Ghostview.ad.h
