/**/#
/**/# Imakefile for xdbx, adapted by Stefan Haenssgen
/**/#
/**/# 05-Feb-92	Included libVis.a for Visualizer
/**/# 09-Feb-92	Added math library (for sqrt)
/**/# 13-Apr-92 Introduced debuglib.a
/**/# 07-Aug-92	Introduced libdebugfn.a for DebugFunctions
/**/#		Removed "CCOPTIONS", changed "CDEBUGFLAGS" to "-g" instead
/**/# 04-Dec-92 Renamed "xdbx" to "msdb"
/**/# 31-aug-93	Cleanup for distribution
/**/#		DebugFn and Visualizer in subdirectories of their own
/**/#

#if defined(SunArchitecture) && OSMajorVersion >= 4
        DEFINES = -DSUNOS4
#endif

#ifdef UltrixArchitecture
#ifdef MipsArchitecture
        DEFINES = -DBSD -DMIPS
#else
        DEFINES = -DBSD
#endif
#endif

CDEBUGFLAGS	= -g

        DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB) \
		  Vis/libVis.a DebugFn/libDebugFnV.a DebugFn/libDebugFn.a

LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB) \
		  Vis/libVis.a DebugFn/libDebugFnV.a DebugFn/libDebugFn.a -lm

           SRCS = calldbx.c command.c dbx.c dialog.c datadpy.c filemenu.c \
		  handler.c parser.c regex.c signs.c signals.c source.c \
		  swindow.c utils.c windows.c msdb.c

           OBJS = calldbx.o command.o dbx.o dialog.o datadpy.o filemenu.o \
		  handler.o parser.o regex.o signs.o signals.o source.o \
		  swindow.o utils.o windows.o msdb.o

ComplexProgramTarget(msdb)
InstallAppDefaults(MSdb)


Vis/libVis.a:
	(cd Vis; make libVis.a)

DebugFn/libDebugFn.a:
	(cd DebugFN; make libDebugFn.a)

DebugFn/libDebugFnV.a:
	(cd DebugFn; make libDebugFnV.a)

clean::
	(cd Vis; make clean)
	(cd DebugFn; make clean)

Makefiles::
	(cd Vis; make Makefiles)

