#define Gui

#ifdef MS_WINDOWS
LOCINCL = -I. -I../../include/base -I../../include/msw
#else
LOCINCL = -I. -I../../include/base -I../../include/x
#endif

#include "Imake.inc"

BINDIR=/prvarch/samples

#if HasGcc
XCOMM STD_INCLUDES=-I/usr/local/lib/g++-include
#endif

DEPLIBS=$(LOCAL_LIBRARIES)

PROGRAMS=mdi

SRCS1=	$(PROGRAMS).cc
OBJS1=	$(SRCS1:.cc=.ExtObj)

NormalLibraryObjectRule()

RES=$(PROGRAMS).rc

Ressource($(PROGRAMS),$(RES))

#if defined(MS_WINDOWS)
#define Res	$(PROGRAMS).res
#else
#define	Res	/**/
#endif

ComplexProgramTarget_1($(PROGRAMS),Res $(LOCAL_LIBRARIES),$(MESLIBS))

PutRessource($(PROGRAMS))

InstallNonExec(aiai.ico,$(BINDIR))
InstallNonExec(aiai.xbm,$(BINDIR))
InstallNonExec(chart.ico,$(BINDIR))
InstallNonExec(mdi.ico,$(BINDIR))

SRCS=$(SRCS1)

WorldRule()

DoDosSpecial(Imakefile,imakefil)
CpDos(aiai.ico)
CpDos(aiai.xbm)
CpDos(chart.ico)
DoDos(mdi.cc)
DoDos(mdi.def)
DoDos(mdi.h)
CpDos(mdi.ico)
DoDos(mdi.rc)
