aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/ximtool/Imakefile
blob: 28d4bc8c4d8eb28fd3194bda7d7fe89450dc9791 (plain) (blame)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Imakefile for the XImtool image display server.
# 18Aug93 - Doug Tody, NOAO/IRAF

X11IRAFDIR = ../
#include <../X11IRAF.tmpl>

/* Hack to build on NOAO HP systems where the Xmu and Xaw libs had to be added
 * specially to the system they don't come with the default X11 development
 * system.  This also avoids the binary requiring the shared lib version on
 * systems which may not have it.
 */

#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

#if defined(HPArchitecture) && OSMajorVersion >= 10
         XMULIB = /usr/lib/X11R6/libXmu.a
         XAWLIB = /usr/lib/X11R6/libXaw.a
#endif


    CDEBUGFLAGS = -g
         XAWLIB = LibXaw3d

  LOCAL_LDFLAGS = $(X11IRAF_LDFLAGS)
 EXTRA_INCLUDES = $(X11IRAF_INCLUDES)
        OBMLIBS = LibObm LibXpm
        MATHLIB = -lm
         DEPOBM = DepLibObm

           SRCS = eps.c iis.c load.c print.c raster.c save.c \
		  rasio.c fitsio.c ximclient.c ximtool.c quant.c util.c \
		  zscale.c gifio.c tiffio.c irafio.c ism.c ism_wcspix.c \
		  logo.c
           OBJS = eps.o iis.o load.o print.o raster.o save.o \
		  rasio.o fitsio.o ximclient.o ximtool.o quant.o util.o \
		  zscale.o gifio.o tiffio.o irafio.o ism.o ism_wcspix.o \
		  logo.o
       ISM_DIRS = clients
       ISM_DONE = clients/DONE

        SUBDIRS = $(ISM_DIRS)


AllTarget(ximtool ximtool-alt ximtool-old ism_clients)

all::
	@(cd clients; $(MAKE) $(MFLAGS) all X11IRAFDIR=../../)

NormalProgramTarget(ximtool,$(OBJS),${DEPOBM},${OBMLIBS} XawClientLibs, $(MATHLIB))

ximtool-alt::
	cat ximtool-alt.csh ximtool.gui > ximtool-alt
	chmod 755 ximtool-alt

ximtool-old::
	cat ximtool-old.csh ximtool-old.gui > ximtool-old
	chmod 755 ximtool-old

ism_clients: $(ISM_DIRS) $(ISM_DONE)
	@(cd clients; $(MAKE) $(MFLAGS) all X11IRAFDIR=../../)

#install::
#	@(cd clients; $(MAKE) $(MFLAGS) install X11IRAFDIR=../../)
 
clean::
	$(RM) ximtool-old ximtool-alt


${DEPOBM}:

ximtool.o:		ximtool.gui.h ../version.h
ximtool.c:		ximtool.gui.h
ximclient.o:		ximtool.html.h
ximclient.c:		ximtool.html.h

ximtool.gui.h: ximtool.gui
	sed -f gui2c.sed ximtool.gui > ximtool.gui.h
ximtool.html.h: ximtool.html
	sed -f gui2c.sed ximtool.html > ximtool.html.h

XCOMM XImtool.ad: ximtool.gui
XCOMM 	sed -e '1,/^appInitialize/d' -e '/^}/,\$d' ximtool.gui > XImtool.ad

#if InstallBinaries
install:: ximtool
	-@if [ -d X11irafBinDir ]; then set +x; \
	        else (set -x; $(MKDIRHIER) X11irafBinDir); fi
	$(CP) ximtool X11irafBinDir
	$(CP) ximtool-old X11irafBinDir
	$(CP) ximtool-alt X11irafBinDir
#endif

#if InstallManuals
install::
	MakeDir(X11irafManDir)
	$(CP) ximtool.man X11irafManDir/ximtool.1
#endif

DependTarget()