# $Id: Imakefile,v 1.3 1992/03/25 17:48:52 jtsillas Exp $

#*****************************************************************************
# 
#   Copyright 1989 The University of Texas at Austin
#   Copyright 1990 Microelectronics and Computer Technology Corporation
#   Copyright 1990 Thomson Consumer Electronics, Inc.
#   Copyright 1991 Bull HN Worldwide Info Systems, Inc.
# 
#*****************************************************************************

#
# Read the README file for a list of options to include for your system
#

           SRCS1 = callgdb.c command.c gdb.c dialog.c filemenu.c \
		  handler.c parser.c regex.c signs.c signals.c source.c \
		  utils.c windows.c mxgdb.c bitmaps.c gdb_handler.c \
		  gdb_parser.c gdb_regex.c MB.c $(MALLOCC)

           OBJS1 = callgdb.o command.o gdb.o dialog.o filemenu.o \
		  handler.o parser.o regex.o signs.o signals.o source.o \
		  utils.o windows.o mxgdb.o bitmaps.o gdb_handler.o \
		  gdb_parser.o gdb_regex.o MB.o $(MALLOCO)

PROGRAMS = mxgdb

# Options which mxgdb recognises include -DSTR_PTY, -DDEBUG, -DPTC_PTY,
# -DSYSV, -DHAVE_TERMIO. Refer to the README for a description
# and some tested configurations.

LOCAL_LIBRARIES=-lXm -lXt -lX11

MALLOCC=malloc.c
MALLOCO=malloc.o

# For users of SGI IRIX, uncomment the line using PTC_PTY's for versions
# of IRIX prior to 4. For version 4 and on uncomment the line using
# IRIX4_PTY. Also set LOCAL_LIBRARIES to $(XMLIB).
#COMPATFLAGS = -DSYSV -signed -DPTC_PTY -DGETS_PROBLEM
#COMPATFLAGS = -DSYSV -signed -DIRIX4_PTY -DGETS_PROBLEM
#LOCAL_LIBRARIES=$(XMLIB)

#ifdef IBMArchitecture

COMPATFLAGS = -DSYSV -DPTC_PTY
EXTRA_LOAD_FLAGS =
CCOPTIONS=-DDEBUG
MALLOCC = 
MALLOCO = 

#else
CCOPTIONS=-DDEBUG -DHAVE_TERMIO -DHAVE_MMAP -Dconst=""
#endif

# Some installations have specific libs and headers to use with Motif
#
# USRLIBDIR=/usr/motif/usr/lib
# INCROOT=/usr/motif/usr/include
# USRINCDIR=/usr/motif/usr/include
# LOCAL_LDFLAGS=-static

NormalLibraryObjectRule()

ComplexProgramTarget_1(mxgdb,$(LOCAL_LIBRARIES), $(SYSLIBS))

InstallAppDefaults(Mxgdb)

