################################################################################
# $Date: 2004/10/20 13:03:54 $		$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
#
#	Edit the following lines as required:
#
#	EXECUTABLE	: the name of the executable to be created
#	MAIN		: the C/C++ file containing your main() function
#	INTERFACES	: the list of the generated C code files
#	APPL_OBJS	: the (possibly empty) list of the object code
#			  files that form the non-interface portion of
#			  your application
#
#       Do not modify the statements preceded by the characters $PJ_.
#       These statements 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   - HP          C   compiler Version A.10.30
#	CC   - HP          C++ compiler Version A.10.09
#
################################################################################

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      = bitex1
MAIN            = bitex1.c

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

INTERFACES      = bitexapplshell.c \
	fieldconfig.c \
	biteconfig.c 


bitexapplshell.o   : bitexapplshell.c
	${CC} ${CFLAGS_RELAXED} bitexapplshell.c
fieldconfig.o   : fieldconfig.c
	${CC} ${CFLAGS_RELAXED} fieldconfig.c
biteconfig.o   : biteconfig.c
	${CC} ${CFLAGS_RELAXED} biteconfig.c

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

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


LLIBS            = -lXpm -luxsig -lXm -lXt -lX11 -lsigaudio -lantenna \
                -lconfig -lfileformats -ltiff -ljpeg \
		-luser -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

bitex1.o: ../../include/sigtypes.h ../../include/signoarch.h
bitex1.o: ../../include/setup.h ../../include/user_lib.h
bitex1.o: ../../include/audio_lib.h ../../include/config_lib.h
bitex1.o: ../../include/antenna_lib.h ../../include/uxsig_lib.h
bitex1.o: ../../include/UxXt.h ../../include/UxInterf.h bitex.h
bitexapplshell.o: ../../include/UxXt.h ../../include/UxInterf.h
bitexapplshell.o: ../../include/sigtypes.h ../../include/signoarch.h
bitexapplshell.o: ../../include/user_lib.h ../../include/setup.h
bitexapplshell.o: ../../include/config_lib.h ../../include/antenna_lib.h
bitexapplshell.o: ../../include/antenna_int.h ../../include/uxsig_lib.h
bitexapplshell.o: ../../include/audio_lib.h ../../include/xpm_lib.h bitex.h
fieldconfig.o: ../../include/UxXt.h ../../include/UxInterf.h
fieldconfig.o: ../../include/sigtypes.h ../../include/signoarch.h
fieldconfig.o: ../../include/user_lib.h ../../include/setup.h
fieldconfig.o: ../../include/config_lib.h ../../include/antenna_lib.h
fieldconfig.o: ../../include/uxsig_lib.h bitex.h
biteconfig.o: ../../include/UxXt.h ../../include/UxInterf.h
biteconfig.o: ../../include/sigtypes.h ../../include/signoarch.h
biteconfig.o: ../../include/user_lib.h ../../include/setup.h
biteconfig.o: ../../include/config_lib.h ../../include/antenna_lib.h
biteconfig.o: ../../include/uxsig_lib.h bitex.h
bitexFunc.o: ../../include/UxXt.h ../../include/UxInterf.h
bitexFunc.o: ../../include/sigtypes.h ../../include/signoarch.h
bitexFunc.o: ../../include/user_lib.h ../../include/setup.h
bitexFunc.o: ../../include/config_lib.h ../../include/antenna_lib.h
bitexFunc.o: ../../include/antenna_int.h ../../include/uxsig_lib.h bitex.h
