XCOMM =====================================================================
XCOMM Imakefile - VT widget distribution August 1995
XCOMM =====================================================================

XCOMM =====================================================================
XCOMM 
XCOMM $Id: Imakefile,v 1.1.1.1 1994/12/16 01:36:48 jck Exp $
XCOMM $Revision: 1.1.1.1 $
XCOMM $Date: 1994/12/16 01:36:48 $
XCOMM 
XCOMM $Log: Imakefile,v $
# Revision 1.0
# VT widget distribution
XCOMM 
XCOMM =====================================================================

#if defined(HPArchitecture)
X_LIBPATH       = -L/usr/lib/X11R5
MOTIF_LIBPATH   = -L/usr/lib/Motif1.2
X_CFLAGS	= -I/usr/include/X11R5
MOTIF_CFLAGS    = -DMOTIF -I/usr/include/Motif1.2
CFLAGS	  = -Aa +O3 -Y -DSYSV -DVT -DXOPEN_CATALOG -D_HPUX_SOURCE \
		  $(UX_INCPATH) -I../include \
		  $(X_CFLAGS) $(MOTIF_CFLAGS) $(DXT) $(DUIL) \
		  +DA1.0 +DS1.1
LIBS	    = $(UX_LIB) $(X_LIBS) -lPW -lm
#endif /* HPArchitecture */

#if defined(i386Architecture)
X_LIBPATH       = -L/usr/X11R6/lib
MOTIF_LIBPATH   = 
X_CFLAGS	= 
MOTIF_CFLAGS    = -DMOTIF
CFLAGS	  = -DVT \
		  $(UX_INCPATH) -I../include \
		  $(X_CFLAGS) $(MOTIF_CFLAGS) $(DXT) $(DUIL)
LIBS	    = $(UX_LIB) $(X_LIBS) -lXt -lSM -lICE -lXpm -lXext -lX11 -lm
#endif /* linux */

#if defined(SGIArchitecture)
#endif /* SGIArchitecture */

#if defined(SparcArchitecture)
# if (OSMajorVersion==4)
# endif
# if (OSMajorVersion==5)
# endif
#endif /* SparcArchitecture */


XCOMM ========================================================================
XCOMM Please don't change anything below this point - no need really - I hope.
XCOMM ========================================================================

#########################################################################
# 
#    	MAKEFILE FOR STAND-ALONE APPLICATION [XT-CODE].
#
#       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 several 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.
#
#  	$Date: 94/05/10 03:09:57 $ 		$Revision: 1.1 $
#########################################################################

EXECUTABLE	= ftpterm
MAIN		= ftpterm.c
INTERFACES	= 	topLevelShell1.c \
	help_msg.c \
	login_dialog.c \
	file_dialog.c \
	lfile_dialog.c 

LANGUAGE	= ANSI C
APPL_OBJS       = UxXt.o UxMethod.o dynamic_popup.o

UIL_FILES       =
UILFILES	=
UIDFILES	=
UIL		=
# UIL compiler, if needed, must be in PATH, or be an absolute pathname.

CODE_TYPE       = XT-CODE
UX_DIR		= /usr/uimx2.6
UX_LIBPATH      =
UX_INCPATH      =
UX_LIB		=
DXT		= -DXT_CODE
DUIL		=
MRMLIB		=



# Changes below this line may be appropriate for other templates as well.

SHELL		= /bin/sh

X_LIBS		= $(MRMLIB) -lVt -lprc -lXm -lXt -lX11


KR_CC	   = cc
ANSI_CC	 = cc 
CPLUS_CC	= cc
KR_CFLAGS	= -D_NO_PROTO -Wp,-H400000 -z
ANSI_CFLAGS	= 
CPLUS_CFLAGS	=

LIBPATH		= $(UX_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBPATH) -L../lib



OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) \
       $(APPL_OBJS) $(EXTRA_OBJS)

$(EXECUTABLE): $(OBJS) $(UIDFILES)
	@echo Linking    $(EXECUTABLE)
	@$(CPLUS_CC) $(OBJS) $(LIBPATH) $(LIBS) -o $(EXECUTABLE)
	@cp $(EXECUTABLE) ../bin
	@strip ../bin/$(EXECUTABLE)
	@echo "Done"



.SUFFIXES: 
.SUFFIXES: .o .uil .uid .c .c

.c.o:
	@echo Compiling $< [$(LANGUAGE)] [$(CODE_TYPE)]
	$(CC) -c $(CFLAGS) $< -o $@
.c.o:
	@echo Compiling $< [$(LANGUAGE)] [$(CODE_TYPE)]
	$(CC) -c $(CFLAGS) $< -o $@

.uil.uid:
	@echo Compiling  $< [UIL]
	@$(UIL) -s $< -o $@
# Remove -s option from previous line for UIL compiles without locale flag set


UxMethod.o: UxMethod.c
	@echo Compiling $< [ANSI-C] [$(CODE_TYPE)]
	@$(ANSI_CC) $(ANSI_CFLAGS) $(CFLAGS) -c $< -o $@


CC = \
@`if [ "$(LANGUAGE)" = "C++" ]; then echo $(CPLUS_CC) $(CPLUS_CFLAGS);fi` \
`if [ "$(LANGUAGE)" = "ANSI C" ]; then echo $(ANSI_CC) $(ANSI_CFLAGS); fi`\
`if [ "$(LANGUAGE)" = "KR-C" ]; then echo $(KR_CC) $(KR_CFLAGS); fi`

LD = \
@`if [ "$(LANGUAGE)" = "C++" ]; then echo $(CPLUS_CC);fi` \
`if [ "$(LANGUAGE)" = "ANSI C" ]; then echo $(ANSI_CC); fi`\
`if [ "$(LANGUAGE)" = "KR-C" ]; then echo $(KR_CC); fi`

LD_FLAGS = \
`if [ "$(LANGUAGE)" = "C++" ]; then echo $(CPLUS_LDFLAGS);fi`\
`if [ "$(LANGUAGE)" = "ANSI C" ]; then echo $(ANSI_LDFLAGS); fi`\
`if [ "$(LANGUAGE)" = "KR-C" ]; then echo $(KR_LDFLAGS); fi`



clean_all:
	@echo Cleaning all files for ftpterm
	@rm -f  *.bak *.o *.old ftpterm Makefile
