XCOMM $XConsortium: Imakefile,v 5.25 94/02/21 10:20:10 kaleb Exp $
#include <Server.tmpl>

SRCS =	amigaInit.c amigaCfb.c amigaCursor.c amigaFbs.c \
	amigaIo.c amigaKbd.c amigaMfb.c amigaMouse.c amigaKeyMap.c amigaC.c 

#if XamigaCCmono
OFILES = amigaInExMono.o
#endif

OBJS = 	amigaInit.o amigaCfb.o amigaCursor.o amigaFbs.o amigaIo.o \
	amigaKbd.o amigaMfb.o amigaMouse.o amigaKeyMap.o  amigaC.o $(OFILES)

   INCLUDES = -I. -I../../.. -I../../../mi -I../../../mfb -I../../../cfb \
		-I./afb -I../../../include -I/sys/arch/amiga -I$(XINCLUDESRC) \
		-I$(FONTINCSRC)
   LINTLIBS = ../../../dix/llib-ldix.ln ../../../os/llib-los.ln \
		../../../mfb/llib-lmfb.ln ../../../mi/llib-lmi.ln \
		../../../cfb/llib-lcfb.ln

#if XamigaCCcolor
DefCCcolor = -DAMIGA_CC_COLOR
SUBDIR1 = afb
#endif
#if XamigaGfxCardSupport
DefGfxCard = -DGFX_CARD_SUPPORT
#endif
#if XamigaRetinaZ3Support
DefRetinaZ3 = -DRETINAZ3_SUPPORT
SUBDIR2 = retina
#endif
#if XamigaCl5426Server
DefCirrus = -DCIRRUS_SUPPORT
SUBDIR3 = cirrus
#endif
#if XamigaCV64Support
DefCV64 = -DCV64_SUPPORT
SUBDIR4 = s3
#endif
DEFINES = -DAMIGAMAXDEPTH=32 $(DefCCcolor) $(DefGfxCard) $(DefRetinaZ3) \
	 $(DefCirrus) $(DefCV64)

#if XamigaCCcolor ||  XamigaRetinaZ3Support || XamigaCl5426Server || XamigaCV64Support
#define IHaveSubdirs

SUBDIRS = $(SUBDIR1) $(SUBDIR2) $(SUBDIR3) $(SUBDIR4)
#endif

NormalLibraryObjectRule()

all:: $(OFILES)

lintlib:

NormalLibraryTarget(amiga,$(OBJS))
NormalLintTarget($(SRCS))

#if XamigaCCmono
amigaInExMono.o: $(ICONFIGFILES)
ObjectFromSpecialSource(amigaInExMono,../../../mi/miinitext,$(EXT_DEFINES) -UPEXEXT)
#endif

InstallManPage(Xamiga,$(MANDIR))
InstallManPageAliases(Xamiga,$(MANDIR),Xamiga24)

DependTarget()
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

