summaryrefslogtreecommitdiff
path: root/support/hypertex/tanmoy/ghostview-1.5-hacked/Imakefile
blob: d21c4c55616b1858f9185687998adde44397d34c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef XCOMM
#define XCOMM #
#endif

XCOMM  Imakefile -- Imakefile for ghostview.
XCOMM  Copyright (C) 1992  Timothy O. Theisen
XCOMM 
XCOMM  This program is free software; you can redistribute it and/or modify
XCOMM  it under the terms of the GNU General Public License as published by
XCOMM  the Free Software Foundation; either version 2 of the License, or
XCOMM  (at your option) any later version.
XCOMM 
XCOMM  This program is distributed in the hope that it will be useful,
XCOMM  but WITHOUT ANY WARRANTY; without even the implied warranty of
XCOMM  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
XCOMM  GNU General Public License for more details.
XCOMM 
XCOMM  You should have received a copy of the GNU General Public License
XCOMM  along with this program; if not, write to the Free Software
XCOMM  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
XCOMM 
XCOMM    Author: Tim Theisen           Systems Programmer
XCOMM  Internet: tim@cs.wisc.edu       Department of Computer Sciences
XCOMM      UUCP: uwvax!tim             University of Wisconsin-Madison
XCOMM     Phone: (608)262-0438         1210 West Dayton Street
XCOMM       FAX: (608)262-9777         Madison, WI   53706


XCOMM This file is part of the hacked version of the ghostview package
XCOMM which is distributed under the terms of the gnu license. The
XCOMM modification referred to above is by Tanmoy Bhattacharya,
XCOMM <tanmoy@qcd.lanl.gov> on Nov 17, 1994. Neither the modification,
XCOMM nor the original program provides any warranty.

           GS_DIR = /usr/local/lib/ghostscript

#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 pdf.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 pdf.o
 SELFILE_DEFINE = -DSELFILE
#else
           SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
                  Ghostview.c ps.c getenv.c setenv.c strcasecmp.c pdf.c
           OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
                  Ghostview.o ps.o getenv.o setenv.o strcasecmp.o pdf.o
 SELFILE_DEFINE =
#endif

        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
  SYS_LIBRARIES = -lm

XCOMM Add -DBSD4_2 to DEFINES if you system does not have memset() and memcpy()
XCOMM Remove -DNOMEMMOVE if memmove exists. 

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

.NOEXPORT:

AllTarget(ghostview)

depend:: app-defaults.h

ComplexProgramTarget(ghostview)
InstallAppDefaults(Ghostview)
InstallNonExec(gvpdf.pro,$(GS_DIR))

main.o: app-defaults.h

app-defaults.h: Ghostview.ad ad2c
	sh ad2c Ghostview.ad > app-defaults.h

clean::
	$(RM) app-defaults.h