#
# Common defines for lcrash makefiles
#
# Copyright 1999 Silicon Graphics, Inc. All rights reserved.
#
VERSION    = 1.5
ifeq ($(ARCH),ia64)
EXTRA_CFLAGS = $(GFLAGS) -DARCH=$(ARCH)
else 
EXTRA_CFLAGS = $(GFLAGS) -DARCH=$(ARCH) -DALLOC_DEBUG
endif

# Turn on strict protype and error checking
EXTRA_CFLAGS += -Wall -Wstrict-prototypes -D_GNU_SOURCE

GDB_DIR    = $(DEPTH)/../crash/gdb-5.1
HPATH      = $(DEPTH)/../lcrash/include
LKCDDIR	   = $(DEPTH)/..
HEADERS    = $(HPATH)/command.h $(HPATH)/lcrash.h $(HPATH)/arch/trace.h
EXTRA_CFLAGS += -I$(HPATH) -I$(LKCDDIR)/librl -I$(LKCDDIR)/libklib/include \
	        -I$(LKCDDIR)/liballoc -I$(LKCDDIR)/libutil -I$(TOPDIR)/include \
                -I$(LKCDDIR)/libsial

include $(LKCDDIR)/Rules.make
