# @(#)makefile	17.1 (ESO-IPG) 01/25/02 17:26:34
#
# $Date: 2003-06-04 14:49:18 $             $Revision: 1.1.1.1 $
#---------------------------------------------------------------------
# 
#
#             Copyright (c) 1992, 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.
#---------------------------------------------------------------------
#
#	make			makes runtime library with no message 
#					catalog
#	make CATALOG=XOPEN	makes runtime library with 
#					X/OPEN message catalog
#
#
#---------------------------------------------------------------------
#
# .VERSION 3.0  930308:		Using default.mk file

include ../../../../../local/default.mk

PRODUCT  = uimx

INCLUDES =  -I. -I../include -I$(INC) $(X11INC) $(XMINC)

CFLAGS    += $(C_OPT) $(DEBUG) $(GUI_OPT) $(INCLUDES) \
           -DRUNTIME -DUSE_STDLIB -DMOTIF_WIDGETS -DSAFE_MALLOC \
           -D$(CATALOG)_CATALOG -D_PTY_DRIVER

LIB     = ../../../../lib/lib$(PRODUCT).a

PRODUCT_VERSION = uimx2_5
CATALOG = NONE

##############################################################
# Target for each machine

#all:	$(MAKEFILE_VMS) $(LIB)
all:	$(LIB)

$(MAKEFILE_VMS): makefile
	$(MAKE_VMS)

OBJECTS =\
	center_vis.o\
        colors.o\
        dstring.o\
	enum_type.o\
        filepath.o\
	UxMethod.o \
        resload.o\
        types.o\
        utype.o\
        valloc.o\
        subproc.o\
	sp_utils.o\
	sp_spmd.o\
	swidget.o \
        t_error.o\
        uimx.o\
	user-rtime.o\
	user-xtype.o\
	user-misc.o\
        uxdd.o\
        uxddMF.o\
	cat_utils.o \
	str_utils.o \
	unit.o \
	ux_error.o \
	utypevars.o \
	XpmRdFToP.o \
	XpmRdFToI.o \
	hashtable.o \
	create.o \
	parse.o \
	data.o \
	misc.o \
	uxpm.o \
	UxXpm.o \
	uxcreate.o

$(LIB):	$(OBJECTS)
	@echo building $(LIB)
	$(AR) $(AR_OPT) $(LIB) $(OBJECTS)
	$(RANLIB) $(LIB)

XOPEN:
	gencat lib$(PRODUCT).cat lib$(PRODUCT).msg

clean: 
	rm -f *.o 
