/* set MKDIRHIER in case you change BINDIR */
MKDIRHIER       =  mkdirhier

XPTOP        	 =  /usr/local/xp/1.2b10

/* where do you want the binary installed */
BINDIR          = ${XPTOP}/bin

/* where do you want the man page installed */
MANDIR          = ${XPTOP}/man/man1

/* where do you want the  application defaults file installed */
XAPPLOADDIR     = ${XPTOP}/lib/app-defaults


#ifdef HasVFork
VFORK_DEFINES = -DHASVFORK
#endif

#XP_DEFINES= -DNOPUTENV

DEFINES= $(SIGNAL_DEFINES) $(VFORK_DEFINES) $(XP_DEFINES)

DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
EXTRA_INCLUDES = 
SRCS = xp.c text.c readfile.c  regexp.c search.c mysystem.c  utils.c
OBJS = xp.o  text.o readfile.o  regexp.o search.o mysystem.o utils.o

all::	xp.man
install.man::	xp.man

ComplexProgramTarget(xp)
InstallAppDefaults(Xp)
InstallScript(xpman,$(BINDIR))

xp.man::	xp.man.tmpl
		sed -e  "s;XAPPLOADDIR;$(XAPPLOADDIR);" <xp.man.tmpl >xp.man

clean::
	$(RM) xp.man
shar:	
	shar `cat MANIFEST` > xp.shar
