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
|
#
# Imakefile for xtapemon : X11 based tape monitoring utility for 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.
*/
#if defined(HPArchitecture) && OSMajorVersion >= 10
XMULIB = /usr/lib/X11R6/libXmu.a
XAWLIB = /usr/lib/X11R6/libXaw.a
#endif
CDEBUGFLAGS = -g
XAWLIB = LibXaw3d
##############################################################################
# Nothing to change below here...
SRCS= classnames.c types.c xtapemon.c
OBJS= classnames.o types.o xtapemon.o
DEFINES= -DXTAPEMON
INCLUDES= -I. $(X11IRAF_INCLUDES)
DEPLIBS= XawClientDepLibs
LOCAL_LIBRARIES= XawClientLibs
LOCAL_LDFLAGS= -L../lib $(X11IRAF_LDFLAGS)
OBMLIBS = LibObm LibXpm
MATHLIB = -lm
AllTarget(xtapemon)
NormalProgramTarget(xtapemon,$(OBJS),,${OBMLIBS} XawClientLibs,$(MATHLIB))
#if InstallAppdefs
install:: XTapemon.ad
MakeDir(X11irafAppDir)
$(CP) XTapemon.ad X11irafAppDir/XTapemon
#endif
#if InstallManuals
install::
MakeDir(X11irafManDir)
$(CP) xtapemon.man X11irafManDir/xtapemon.1
#endif
#if InstallBinaries
install:: xtapemon
-@if [ -d X11irafBinDir ]; then set +x; \
else (set -x; $(MKDIRHIER) X11irafBinDir); fi
$(CP) xtapemon X11irafBinDir
#endif
xtapemon.o: XTapemon.ad.h
xtapemon.c: XTapemon.ad.h
XTapemon.ad.h: XTapemon.ad
ad2c.sh XTapemon.ad > XTapemon.ad.h
clean::
rm -f *.o xtapemon
DependTarget()
|