#  Global rules for compilation for sunos

X11_INCLUDE = /usr/X11R6/include
XM_INCLUDE = /usr/include/Xm

LIBPATH_X11 = -L/usr/X11R6/lib
LIBPATH_MOTIF = -L/usr/lib
LIBPATH_UCB =
LIBPATH_DATABASE =-L$(MYSQL_LIB)
LIBS_X11 = -lXt -lX11
LIBS_MOTIF = -lXm
LIBS_XAW = -lXaw -lXt -lm
LIBS_OS = -lz
LIBS_DATABASE = -ltbl_mysql -lmysqlclient
LIBS_LEX = -lfl
LIBS_CTN := $(LDFLAGS) -lctn $(LIBPATH_DATABASE) -lmysqlclient
LIBS_CTN_NODB := $(LDFLAGS) -lctn 

TBL_DB = tbl_mysql.o
TBLMB_DB = not_supported_with_this_software

CFLAGS_X11 = -I$(X11_INCLUDE)
CFLAGS_MOTIF = -I$(XM_INCLUDE)

#DEBUG_LIBS = -lmalloc
C_OPTS := -g -DDEBUG -D$(ARCHITECTURE) -D$(OS) -DSHARED_MEMORY \
-DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB \
-I$(DICOM_INCLUDE) -I$(MYSQL_INCLUDE) \
$(CFLAGS_MOTIF) $(CFLAGS_X11) $(CFLAGS) \
-DLONGSIZE=$(LONGSIZE) -DINTSIZE=$(INTSIZE) -DSHORTSIZE=$(SHORTSIZE) \
-DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP
