#define DoNormalLib NormalLibXvMC #define DoSharedLib SharedLibXvMC #define DoDebugLib DebugLibXvMC #define DoProfileLib ProfileLibXvMC /*#define LibName viaXvMC*/ #define SoRev SOXVMCREV #define LibHeaders NO #include /* Anyone know how to determine this properly? * Comment out the following to build in the x tree */ #define OUTOFTREE #ifdef OUTOFTREE VIADRIVERSRC=../unichrome #else VIADRIVERSRC=$(XF86DRIVERSRC)/via #endif #ifdef SharedXvMCReqs REQUIREDLIBS = SharedXvMCReqs -lXv #endif #if Malloc0ReturnsNull ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL #endif DEFINES = $(ALLOC_DEFINES) $(PICFLAGS) -DTRUE=1 -DFALSE=0 INCLUDES = -I$(XINCLUDESRC) -I$(INCLUDESRC) -I$(XLIBSRC) -I$(EXTINCSRC) \ -I$(XF86COMSRC) -I$(XF86OSSRC) -I$(DRMSRCDIR)/shared-core \ -I$(DRMSRCDIR)/shared \ -I$(XF86OSSRC)/linux/drm/kernel -I$(VIADRIVERSRC) SRCS = viaXvMC.c viaLowLevel.c viaLowLevelPro.c xf86dri.c driDrawable.c OBJS = viaXvMC.o viaLowLevel.o xf86drm.o xf86drmHash.o \ xf86drmRandom.o xf86drmSL.o xf86dri.o driDrawable.o OBJSPRO = viaXvMC.o viaLowLevelPro.o xf86drm.o xf86drmHash.o \ xf86drmRandom.o xf86drmSL.o xf86dri.o driDrawable.o LINTLIBS = $(LINTXLIB) #include SharedLibraryTarget(viaXvMC,$(SoRev),$(OBJS) $(EXTRASHAREDOBJS),.,.) SharedLibraryTarget(viaXvMCPro,$(SoRev),$(OBJSPRO) $(EXTRASHAREDOBJS),.,.) InstallSharedLibrary(viaXvMC,$(SoRev),$(SHLIBDIR)) InstallSharedLibrary(viaXvMCPro,$(SoRev),$(SHLIBDIR)) #if defined(LinuxArchitecture) OS_SUBDIR = linux LinkSourceFile(xf86drm.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm) LinkSourceFile(xf86drmHash.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm) LinkSourceFile(xf86drmRandom.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm) LinkSourceFile(xf86drmSL.c,$(XF86OSSRC)/$(OS_SUBDIR)/drm) #endif DependTarget()