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 =====================================================================
XCOMM Uncomment this if you want to use ANY of the AUDIO sound systems
XCOMM #define COMPILE_IN_AUDIO    

XCOMM Uncomment this if you want to use RPLAY sound system
XCOMM #define USE_RPLAY


#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	  = -g -Aa -DDRAGDROP -DSYSV -DXOPEN_CATALOG -D_HPUX_SOURCE -I. \
		  $(X_CFLAGS) $(MOTIF_CFLAGS)
LIBS	    = $(UX_LIB) $(X_LIBS) -lPW -lm 
#endif /* HPArchitecture */

#if defined(i386Architecture)
X_LIBPATH       =
MOTIF_LIBPATH   =
X_CFLAGS	=
MOTIF_CFLAGS    = -DMOTIF
CFLAGS	  = -DSYSV -DXOPEN_CATALOG  -I. \
		  $(X_CFLAGS) $(MOTIF_CFLAGS)
LIBS	    = $(UX_LIB) $(X_LIBS) -lm 
#endif /* i386Architecture */

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

#if defined(SparcArchitecture)
#if (OSMajorVersion==4)
#endif

#if (OSMajorVersion==5)
#endif

#endif /* SparcArchitecture */

    LOCAL_LIBRARIES = 

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

#########################################################################
# 
#    	MAKEFILE FOR STAND-ALONE APPLICATION [XT-CODE].
#
#       VTLIBRARY      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 $
#########################################################################

VTLIBRARY	= libprc.a
MAIN		= procopen.c
CC	      = cc

LANGUAGE	= ANSI C
EXTRA_OBJS      = mit.c register.o
CODE_TYPE       = XT-CODE
UX_DIR		= /usr/uimx2.6
UX_LIBPATH      =
UX_INCPATH      =
UX_LIB		=



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

SHELL		= /bin/sh

X_LIBS		= -lXm -lXt -lX11


KR_CFLAGS	= -D_NO_PROTO -Wp,-H400000 -z
ANSI_CFLAGS	= -Aa
CPLUS_CFLAGS	= +a1 -Aa

#CFLAGS	  = -DMEM1D -Aa +O3 -DSYSV -DXOPEN_CATALOG -D_HPUX_SOURCE -I. \
#		  $(X_CFLAGS) $(MOTIF_CFLAGS)
LIBPATH		= $(MOTIF_LIBPATH) $(X_LIBPATH) 


OBJS = $(MAIN:.c=.o) $(EXTRA_OBJS:.c=.o)

$(VTLIBRARY): $(OBJS)
	@echo Archiving    $(VTLIBRARY)
	@ar -r $(VTLIBRARY) $(OBJS)
	@cp $(VTLIBRARY) ../lib
	@echo "Done"

procopen.o: procopen.c mit.c mit.h
	@echo Compiling
	$(CC) -c $(CFLAGS) $< -o $@

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


#.c.o:
#	@echo Compiling
#	$(CC) -c $(CFLAGS) $< -o $@
clean_all:
	@echo Cleaning all files for process control code
	@rm -f *.bak *.a *.o *.old Makefile
