#########################################################################
#
#########################################################################

CFLAGS_ALL	= -D${MACH_OS} -DMOTIF -DSYSV -DXT_CODE -DXOPEN_CATALOG \
                  -I./  -I../../include -I${IRIS_ROOT}/include

CFLAGS		= -c ${DEBUGFLAG} ${C_OPT}  ${CFLAGS_ALL}
CXXFLAGS        = -c ${DEBUGFLAG} ${CC_OPT} ${CFLAGS_ALL}
CCFLAGS = ${CXXFLAGS}

CFLAGS_RELAXED	= -c ${DEBUGFLAG} ${C_OPT_RELAXED}  ${CFLAGS_ALL}
CCFLAGS_RELAXED = -c ${DEBUGFLAG} ${CC_OPT_RELAXED} ${CFLAGS_ALL}

LDFLAGS         = -L../../libs/lib -L${IRIS_ROOT}/libs/lib ${LPATH_X11}

EXECUTABLE	= manuals

all : all_      # Just to insure that it's first

MAN_CC_SRCS	= manuals.C \
		manApplShell.C \
		manAS.C
MAN_CC_OBJS 	= ${MAN_CC_SRCS:.C=.o}

LLIBS            = -lXpm -lbxutils -luxsig -lXm -lXt -lX11 -ldspi \
		   -lconfig -luser -lfileformats -lm ${LSEARCH_BSD} 

all_:		${EXECUTABLE}

MKDEPEND_CSRCS = ${MAN_CC_SRCS}
depend:; ${MKDEPEND}

${EXECUTABLE}: ${MAN_CC_OBJS}
	@echo Linking ${EXECUTABLE}
	${CXX} ${LD_OPT} ${MAN_CC_OBJS} ${LDFLAGS} ${LLIBS} -o ${EXECUTABLE}
	@rootchown operator ${EXECUTABLE}
	@rootchmod 775 ${EXECUTABLE}
	@rootchown operator *.rf
	@rootchmod 664 *.rf

install:	${EXECUTABLE}
		rootcp -p ${EXECUTABLE} ${IRIS_BIN}
		rootcp -p ${EXECUTABLE}.rf ${IRIS_APP_DEFAULTS}${EXECUTABLE}
		rootcp -p ${EXECUTABLE}.rf /usr/lib/X11/app-defaults/${EXECUTABLE}
		( cd ${IRIS_BIN} ; strip ${EXECUTABLE} ; \
		  rootchown operator ${EXECUTABLE} ; rootchmod 775 ${EXECUTABLE} )
		( cd ${IRIS_APP_DEFAULTS} ; \
		  rootchown operator ${EXECUTABLE} ; rootchmod 664 ${EXECUTABLE} )
		( cd /usr/lib/X11/app-defaults ; \
		  rootchown operator ${EXECUTABLE} ; rootchmod 664 ${EXECUTABLE} )


cleanexe:;	rm -f ${EXECUTABLE} core
clean:		cleanexe
		rm -f *.o
# DO NOT DELETE

manuals.o: ../../include/sigtypes.h ../../include/signoarch.h
manuals.o: ../../include/UxXt.h ../../include/UxInterf.h
manuals.o: ../../include/user_lib.h ../../include/uxsig_lib.h manApplShell.h
manuals.o: manuals.h
manApplShell.o: manApplShell.h
manAS.o: ../../include/sigtypes.h ../../include/signoarch.h
manAS.o: ../../include/user_lib.h ../../include/uxsig_lib.h
manAS.o: ../../include/xpm_lib.h ../../include/UxXt.h
manAS.o: ../../include/UxInterf.h manApplShell.h manuals.h
