head	1.2;
access;
symbols
	netbsd-6-0-6-RELEASE:1.1.1.2
	netbsd-6-1-5-RELEASE:1.1.1.2
	netbsd-6-1-4-RELEASE:1.1.1.2
	netbsd-6-0-5-RELEASE:1.1.1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2
	riastradh-drm2:1.1.1.2.0.8
	riastradh-drm2-base:1.1.1.2
	netbsd-6-1-3-RELEASE:1.1.1.2
	netbsd-6-0-4-RELEASE:1.1.1.2
	netbsd-6-1-2-RELEASE:1.1.1.2
	netbsd-6-0-3-RELEASE:1.1.1.2
	netbsd-6-1-1-RELEASE:1.1.1.2
	netbsd-6-1:1.1.1.2.0.6
	netbsd-6-0-2-RELEASE:1.1.1.2
	netbsd-6-1-RELEASE:1.1.1.2
	netbsd-6-1-RC4:1.1.1.2
	netbsd-6-1-RC3:1.1.1.2
	netbsd-6-1-RC2:1.1.1.2
	netbsd-6-1-RC1:1.1.1.2
	netbsd-6-0-1-RELEASE:1.1.1.2
	netbsd-6-0:1.1.1.2.0.4
	netbsd-6-0-RELEASE:1.1.1.2
	netbsd-6-0-RC2:1.1.1.2
	netbsd-6-0-RC1:1.1.1.2
	netbsd-6:1.1.1.2.0.2
	netbsd-6-base:1.1.1.2
	MesaLib-7-8-2:1.1.1.2
	MesaLib-7-7-1:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2014.07.09.19.46.46;	author riastradh;	state dead;
branches;
next	1.1;
commitid	D2zJVI2fYV0xUJHx;

1.1
date	2010.05.23.21.22.34;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2010.05.23.21.22.34;	author mrg;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2010.07.19.05.31.49;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.2
log
@merge MesaLib 7.11.2
@
text
@# src/gallium/winsys/xlib/Makefile

# This makefile produces a "stand-alone" libGL.so which is based on
# Xlib (no DRI HW acceleration)


TOP = ../../../..
include $(TOP)/configs/current


GL_MAJOR = 1
GL_MINOR = 5
GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)


INCLUDE_DIRS = \
	-I$(TOP)/include \
	-I$(TOP)/src/mesa \
	-I$(TOP)/src/mesa/main \
	-I$(TOP)/src/gallium/include \
	-I$(TOP)/src/gallium/drivers \
	-I$(TOP)/src/gallium/state_trackers/glx/xlib \
	-I$(TOP)/src/gallium/auxiliary

DEFINES += \
	-DGALLIUM_SOFTPIPE \
	-DGALLIUM_TRACE \
	-DGALLIUM_BRW
#-DGALLIUM_CELL will be defined by the config */

XLIB_WINSYS_SOURCES = \
	xlib.c \
	xlib_cell.c \
	xlib_llvmpipe.c \
	xlib_softpipe.c \
	xlib_trace.c 


XLIB_WINSYS_OBJECTS = $(XLIB_WINSYS_SOURCES:.c=.o)


# Note: CELL_SPU_LIB is only defined for cell configs

LIBS = \
	$(GALLIUM_DRIVERS) \
	$(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \
	$(TOP)/src/mesa/libglapi.a \
	$(TOP)/src/mesa/libmesagallium.a \
	$(GALLIUM_AUXILIARIES) \
	$(CELL_SPU_LIB) \


.SUFFIXES : .cpp

.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(DEFINES) $(CFLAGS) $< -o $@@

.cpp.o:
	$(CXX) -c $(INCLUDE_DIRS) $(DEFINES) $(CXXFLAGS) $< -o $@@



default: $(TOP)/$(LIB_DIR)/gallium $(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME)

$(TOP)/$(LIB_DIR)/gallium:
	@@ mkdir -p $(TOP)/$(LIB_DIR)/gallium

# Make the libGL.so library
$(TOP)/$(LIB_DIR)/gallium/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) Makefile
	$(TOP)/bin/mklib -o $(GL_LIB) \
		-linker "$(CC)" \
		-major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
		-install $(TOP)/$(LIB_DIR)/gallium \
		$(MKLIB_OPTIONS) $(XLIB_WINSYS_OBJECTS) \
		-Wl,--start-group $(LIBS) -Wl,--end-group $(GL_LIB_DEPS)


depend: $(XLIB_WINSYS_SOURCES)
	@@ echo "running $(MKDEP)"
	@@ rm -f depend  # workaround oops on gutsy?!?
	@@ touch depend
	$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(XLIB_WINSYS_SOURCES) \
		> /dev/null 2>/dev/null


install: default
	$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/GL
	$(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
	$(INSTALL) -m 644 $(TOP)/include/GL/*.h $(DESTDIR)$(INSTALL_DIR)/include/GL
	@@if [ -e $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) ]; then \
		$(MINSTALL) $(TOP)/$(LIB_DIR)/libGL* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR); \
	fi


# Emacs tags
tags:
	etags `find . -name \*.[ch]` $(TOP)/include/GL/*.h

clean:
	-rm -f *.o


include depend
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@initial import of MesaLib-7.7.1
@
text
@@


1.1.1.2
log
@import Mesa 7.8.2, lib part.  major changes since 7.7.1:
- several new extensions for various drivers
- many i965, i915 driver fixes
- many glsl fixes
@
text
@d23 1
a23 2
	-I$(TOP)/src/gallium/auxiliary \
	$(X11_CFLAGS)
d26 3
a28 1
	-DGALLIUM_SOFTPIPE
d35 2
a36 1
	xlib_softpipe.c
d56 1
a56 1
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@@
d59 1
a59 1
	$(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $< -o $@@
@

