XCOMM $Xorg: Imakefile,v 1.5 2000/08/17 19:48:38 cpqbld Exp $




XCOMM $XFree86: xc/programs/Xserver/hw/vfb/Imakefile,v 3.30 2001/05/31 16:11:10 dawes Exp $

#include <Server.tmpl>

#if HasShm
SHMDEF = -DHAS_SHM
#endif

XCOMM add more architectures here as we discover them
#if defined(HPArchitecture) || \
    (defined(SparcArchitecture) && !defined(LynxOSArchitecture)) || \
    SystemV4 || \
    defined(OSF1Architecture) || \
    defined(i386BsdArchitecture) || \
    defined(LinuxArchitecture) || \
    defined(DarwinArchitecture)
MMAPDEF = -DHAS_MMAP
#endif

#ifdef OS2Architecture
SRCS1 = os2_stubs.c
OBJS1 = os2_stubs.o
#endif

SRCSA =	InitInput.c InitOutput.c stubs.c $(SRCS1) miinitext.c $(SRCS2)

OBJSA =	InitInput.o InitOutput.o stubs.o $(OBJS1) miinitext.o $(OBJS2)

INCLUDES = -I. -I$(XBUILDINCDIR) -I$(FONTINCSRC) \
	   -I../../fb -I../../mfb -I../../mi -I../../include -I../../os  \
           -I$(EXTINCSRC) -I$(XINCLUDESRC)  -I$(SERVERSRC)/render

DEFINES = $(OS_DEFINES) $(SHMDEF) $(MMAPDEF) -UXFree86LOADER


#if BuildDPMS
SRCSC =	dpmsstubs.c
OBJSC =	dpmsstubs.o
#endif

SRCS =	$(SRCSA) $(SRCSB) $(SRCSC)
OBJS =	$(OBJSA) $(OBJSB) $(OBJSC)

NormalLibraryObjectRule()
NormalLibraryTarget(vfb,$(OBJS))

#ifdef OS2Architecture
LinkSourceFile(os2_stubs.c,../xfree86/os-support/os2)
SpecialCObjectRule(os2_stubs,$(ICONFIGFILES),-DOS2NULLSELECT)
#endif

LinkSourceFile(stubs.c,../../Xi)
SpecialCObjectRule(InitInput,$(ICONFIGFILES),$(EXT_DEFINES))

LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(EXT_DEFINES) $(PAN_DEFINES) -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS $(EXT_MODULE_DEFINES) -UXFree86LOADER)

#if BuildDPMS
LinkSourceFile(dpmsstubs.c,$(SERVERSRC)/Xext)
SpecialCObjectRule(dpmsstubs,$(ICONFIGFILES),$(EXT_DEFINES))
#endif

InstallManPage(Xvfb,$(MANDIR))
DependTarget()
