########################################################################
# $Date: 2004/10/20 13:06:37 $		$Revision: 806.2 $
########################################################################
#             Copyright 1991, Visual Edge Software Ltd.
#
# ALL  RIGHTS  RESERVED.  Permission  to  use,  copy,  modify,  and
# distribute  this  software  and its documentation for any purpose
# and  without  fee  is  hereby  granted,  provided  that the above
# copyright  notice  appear  in  all  copies  and  that  both  that
# copyright  notice and this permission notice appear in supporting
# documentation,  and that  the name of Visual Edge Software not be
# used  in advertising  or publicity  pertaining to distribution of
# the software without specific, written prior permission. The year
# included in the notice is the year of the creation of the work.
########################################################################
#
#       MAKEFILE FOR STAND-ALONE XT CODE APPLICATION.  
#
#       EXECUTABLE      is the name of the executable to be created 
#       MAIN            is the .c file containing your main() function 
#       INTERFACES      is a list of the generated C code files
#       APP_OBJS        is a (possibly empty) list of the object code
#                       files that form the non-interface portion of
#                       your application
#
#       In the first three statements, the variables on the right 
#	of the equal sign will be replaced with their corresponding
#       values when the makefile is automatically generated.
#
#       This template is used for makefiles which do not reference 
#       the Ux runtime library.
#
########################################################################
# 
#	List of supported compiler(s):
#
#	cc - A.09.61 HP C Compiler
#	CC - A.03.40 HP C++ compiler  
#
########################################################################

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}

LANGUAGE        = ANSI C
EXECUTABLE      = color_setup
MAIN            = color_setup.c

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

INTERFACES      = color_setup_applshell.c \
	color_set_dialog.c \
	rename_dialog.c \
	special_color_dialog.c 

color_setup_applshell.o   : color_setup_applshell.c
	${CC} ${CFLAGS_RELAXED} color_setup_applshell.c
color_set_dialog.o   : color_set_dialog.c
	${CC} ${CFLAGS_RELAXED} color_set_dialog.c
special_color_dialog.o   : special_color_dialog.c
	${CC} ${CFLAGS_RELAXED} special_color_dialog.c
rename_dialog.o   : rename_dialog.c
	${CC} ${CFLAGS_RELAXED} rename_dialog.c

APPL_SRCS       = colorfunc.c
APPL_OBJS = ${APPL_SRCS:.c=.o}

C_SRCS = $(MAIN) $(INTERFACES) $(APPL_SRCS)
C_OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS)

LLIBS            = -luxsig -ltvsubs -lXpm -lXm -lXt -lX11 \
                   -lmisc -lconfig -luser \
	  	   -lfileformats -ltiff -ljpeg -lm ${LSEARCH_BSD} 

all_ :          $(EXECUTABLE)

MKDEPEND_CSRCS = ${C_SRCS}
depend:; $(MKDEPEND)

$(EXECUTABLE): $(C_OBJS)
	@echo Linking    $(EXECUTABLE)
	$(CXX) $(LD_OPT) $(C_OBJS) $(LDFLAGS) $(LLIBS) -o $(EXECUTABLE)
	@rootchown operator $(EXECUTABLE)
	@rootchmod 775 $(EXECUTABLE)
	@rootchown operator *.rf
	@rootchmod 664 *.rf

install:	$(EXECUTABLE)
		rootcp -p $(EXECUTABLE) ${IRIS_BIN}
		cat *.rf > temp.rf
		rootcp -p temp.rf $(IRIS_APP_DEFAULTS)$(EXECUTABLE)
		rootcp -p temp.rf /usr/lib/X11/app-defaults/$(EXECUTABLE)
		rm temp.rf
		( 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
cleanux:;	rm -f UxXt.c UxXt.h UxMethod.c
clean:		cleanexe cleanux
		rm -f *.o
# DO NOT DELETE

color_setup.o: ../../include/sigtypes.h ../../include/signoarch.h
color_setup.o: ../../include/user_lib.h ../../include/uxsig_lib.h
color_setup.o: ../../include/UxXt.h ../../include/UxInterf.h color_setup.h
color_setup_applshell.o: ../../include/UxXt.h ../../include/UxInterf.h
color_setup_applshell.o: ../../include/sigtypes.h ../../include/signoarch.h
color_setup_applshell.o: ../../include/dsp.h ../../include/setup.h
color_setup_applshell.o: ../../include/dsp_lib.h ../../include/tvsubs_lib.h
color_setup_applshell.o: ../../include/uxsig_lib.h ../../include/user_lib.h
color_setup_applshell.o: color_setup.h
color_set_dialog.o: ../../include/UxXt.h ../../include/UxInterf.h
color_set_dialog.o: ../../include/sigtypes.h ../../include/signoarch.h
color_set_dialog.o: ../../include/user_lib.h ../../include/uxsig_lib.h
color_set_dialog.o: ../../include/setup.h color_setup.h
rename_dialog.o: ../../include/UxXt.h ../../include/UxInterf.h
rename_dialog.o: ../../include/sigtypes.h ../../include/signoarch.h
rename_dialog.o: ../../include/user_lib.h ../../include/uxsig_lib.h
rename_dialog.o: ../../include/setup.h color_setup.h
special_color_dialog.o: ../../include/UxXt.h ../../include/UxInterf.h
special_color_dialog.o: ../../include/sigtypes.h ../../include/signoarch.h
special_color_dialog.o: ../../include/user_lib.h ../../include/uxsig_lib.h
special_color_dialog.o: ../../include/setup.h color_setup.h
colorfunc.o: ../../include/sigtypes.h ../../include/signoarch.h
colorfunc.o: ../../include/setup.h ../../include/dsp.h
colorfunc.o: ../../include/config_lib.h ../../include/dsp_lib.h
colorfunc.o: ../../include/headers.h ../../include/user_lib.h
colorfunc.o: ../../include/misc_lib.h ../../include/uxsig_lib.h
colorfunc.o: ../../include/UxXt.h ../../include/UxInterf.h color_setup.h
