TARGET = libradeon_dri.so GALLIUMDIR = ../../.. DRMDIR ?= /usr DRIDIR = ../../../../driclient OBJECTS = radeon_vl.o CFLAGS += -g -Wall -Werror=implicit-function-declaration -fPIC \ -I${GALLIUMDIR}/include \ -I${GALLIUMDIR}/winsys/g3dvl \ -I${GALLIUMDIR}/winsys/drm/radeon/core \ -I${DRMDIR}/include \ -I${DRMDIR}/include/drm \ -I${DRMDIR}/include/nouveau \ -I${GALLIUMDIR}/drivers \ -I${GALLIUMDIR}/auxiliary \ -I${DRIDIR}/include \ -I${GALLIUMDIR}/drivers/r300 LDFLAGS += -L${DRMDIR}/lib \ -L${DRIDIR}/lib \ -L${GALLIUMDIR}/winsys/drm/nouveau/common \ -L${GALLIUMDIR}/auxiliary/draw \ -L${GALLIUMDIR}/auxiliary/tgsi \ -L${GALLIUMDIR}/auxiliary/translate \ -L${GALLIUMDIR}/auxiliary/rtasm \ -L${GALLIUMDIR}/auxiliary/cso_cache \ -L${GALLIUMDIR}/drivers/r300 LIBS += -ldriclient -ldrm -ldraw -ltgsi -ltranslate -lrtasm -lcso_cache -lm ############################################# .PHONY = all clean libdriclient all: ${TARGET} ${TARGET}: ${OBJECTS} libdriclient $(CC) ${LDFLAGS} -shared -o $@ ${OBJECTS} ${LIBS} libdriclient: cd ${DRIDIR}/src; ${MAKE} clean: cd ${DRIDIR}/src; ${MAKE} clean rm -rf ${OBJECTS} ${TARGET}