aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/obmsh/Imakefile
blob: 8a67758ae8c73139b72852180cd1724ed5253e85 (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
# Imakefile for the OBM shell.

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

    CDEBUGFLAGS = -g

/* 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.
 */
#if defined(HPArchitecture) && OSMajorVersion >= 10
         XMULIB = /usr/lib/X11R6/libXmu.a
         XAWLIB = /usr/lib/X11R6/libXaw.a
#endif


  LOCAL_LDFLAGS = $(X11IRAF_LDFLAGS)
 EXTRA_INCLUDES = $(X11IRAF_INCLUDES)
        OBMLIBS = LibObm LibXpm
        MATHLIB = -lm
         XAWLIB = LibXaw3d

           SRCS = obmsh.c
           OBJS = obmsh.o


AllTarget(obmsh)

NormalProgramTarget(obmsh,$(OBJS),,${OBMLIBS} XawClientLibs,$(MATHLIB))

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

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

DependTarget()