diff options
| author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-05-11 10:35:30 +0100 |
|---|---|---|
| committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-05-11 10:35:59 +0100 |
| commit | 04ea44d2ef4328c934407b618b986168f34023e4 (patch) | |
| tree | 314eb73005c59b7eb2b88402963b8da8ca419d51 | |
| parent | 055571df765a3736ad2a3d0667de5cea5bd02c69 (diff) | |
First stab at fixing building of appleglxapplegl-vtable-2
| -rw-r--r-- | src/glx/Makefile.am | 7 | ||||
| -rw-r--r-- | src/glx/apple/Makefile | 131 | ||||
| -rw-r--r-- | src/glx/apple/Makefile.am | 21 |
3 files changed, 27 insertions, 132 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index df52136c93..184317559c 100644 --- a/src/glx/Makefile.am +++ b/src/glx/Makefile.am @@ -24,7 +24,7 @@ SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI SHARED_GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la endif -SUBDIRS=. tests +SUBDIRS= if HAVE_XF86VIDMODE EXTRA_DEFINES_XF86VIDMODE = -DXF86VIDMODE @@ -110,6 +110,9 @@ endif if HAVE_APPLEDRI libglx_la_SOURCES += \ applegl_glx.c + +SUBDIRS += apple +libglx_la_LIBADD += $(builddir)/apple/libappleglx.la endif libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.la @@ -131,4 +134,6 @@ lib@GL_LIB@_la_SOURCES = lib@GL_LIB@_la_LIBADD = $(GL_LIBS) lib@GL_LIB@_la_LDFLAGS = $(GL_LDFLAGS) +SUBDIRS+=. tests + include $(top_srcdir)/install-lib-links.mk diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile deleted file mode 100644 index 91a7218925..0000000000 --- a/src/glx/apple/Makefile +++ /dev/null @@ -1,131 +0,0 @@ -TOP = ../../.. -top_builddir = $(TOP) -# This can be a filthy lie. But it doesn't currently build out-of-tree -# anyway, so it's no worse than what we've got now. -top_srcdir = $(TOP) - -include $(TOP)/configs/current - -#CC=gcc -#GL_CFLAGS=-Wall -ggdb3 -Os -DHAVE_PTHREAD -D_REENTRANT $(RC_CFLAGS) $(CFLAGS) -#GL_LDFLAGS=-L$(INSTALL_DIR)/lib -L$(X11_DIR)/lib $(LDFLAGS) -Wl,-single_module - -TCLSH=tclsh8.5 -MKDIR=mkdir -INSTALL=install -LN=ln -RM=rm - -#INCLUDE=-I. -Iinclude -I.. -DGLX_ALIAS_UNSUPPORTED -I$(INSTALL_DIR)/include -I$(X11_DIR)/include - -#COMPILE=$(CC) $(INCLUDE) $(GL_CFLAGS) -c - -#The directory with the final binaries. -BUILD_DIR=builds - -default: $(TOP)/$(LIB_DIR)/lib$(GL_LIB).$(LIB_EXT) - -SOURCES = \ - apple_cgl.c \ - apple_glx.c \ - apple_glx_context.c \ - apple_glx_drawable.c \ - apple_glx_log.c \ - apple_glx_pbuffer.c \ - apple_glx_pixmap.c \ - apple_glx_surface.c \ - apple_visual.c \ - apple_glapi.c \ - apple_xgl_api_read.c \ - apple_xgl_api_stereo.c \ - apple_xgl_api_viewport.c \ - appledri.c \ - ../create_context.c \ - ../clientattrib.c \ - ../compsize.c \ - ../glxconfig.c \ - glx_empty.c \ - ../glx_error.c \ - ../glx_pbuffer.c \ - ../glx_query.c \ - ../glxcmds.c \ - ../glxcurrent.c \ - ../glxext.c \ - ../glxextensions.c \ - ../glxhash.c \ - glxreply.c \ - ../pixel.c \ - ../xfont.c \ - ../applegl_glx.c - -include $(TOP)/src/mesa/Makefile.sources - -# override GLAPI_LIB -GLAPI_LIB = $(TOP)/src/mapi/glapi/libglapi.a - -LDFLAGS += -lXplugin -framework ApplicationServices -framework CoreFoundation - -OBJECTS = $(SOURCES:.c=.o) - -INCLUDES = -I. -Iinclude -I..\ - -I$(TOP)/include \ - -I$(TOP)/include/GL/internal \ - -I$(TOP)/src/mesa \ - -I$(TOP)/src/mesa/main \ - -I$(TOP)/src/mapi \ - -I$(TOP)/src/mapi/glapi \ - $(LIBDRM_CFLAGS) \ - $(DRI2PROTO_CFLAGS) \ - $(X11_INCLUDES) - -##### RULES ##### - -.c.o: - $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@ - -.S.o: - $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@ - -##### TARGETS ##### - -default: depend $(TOP)/$(LIB_DIR)/lib$(GL_LIB).$(LIB_EXT) - -# Make libGL -$(TOP)/$(LIB_DIR)/lib$(GL_LIB).$(LIB_EXT): $(OBJECTS) $(GLAPI_LIB) Makefile - $(MKLIB) -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \ - -major 1 -minor 2 $(MKLIB_OPTIONS) \ - -install $(TOP)/$(LIB_DIR) -id $(INSTALL_LIB_DIR)/lib$(GL_LIB).1.dylib \ - $(GL_LIB_DEPS) $(OBJECTS) $(GLAPI_LIB) - -$(GLAPI_LIB): - @$(MAKE) -C $(TOP)/src/mapi/glapi - -depend: $(SOURCES) $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES) Makefile - rm -f depend - touch depend - $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \ - $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES) - -# Emacs tags -tags: - etags `find . -name \*.[ch]` `find $(TOP)/include` - -install_headers: include/GL/gl.h - $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/GL - $(INSTALL) -m 644 include/GL/gl.h $(DESTDIR)$(INSTALL_DIR)/include/GL - -install_libraries: $(TOP)/$(LIB_DIR)/lib$(GL_LIB).$(LIB_EXT) - $(MAKE) -C $(TOP)/src/mesa install-libgl - -install: install_libraries - -# Remove .o and backup files -clean: - -rm -f *.o *.a *~ - -rm -f *.c~ *.h~ - -rm -f *.dylib - -rm -f include/GL/gl.h - -rm -f *.o *~ - -rm -f depend depend.bak - --include depend diff --git a/src/glx/apple/Makefile.am b/src/glx/apple/Makefile.am new file mode 100644 index 0000000000..0efc9cd946 --- /dev/null +++ b/src/glx/apple/Makefile.am @@ -0,0 +1,21 @@ +noinst_LTLIBRARIES = libappleglx.la + +libappleglx_la_SOURCES = \ + apple_cgl.c \ + apple_glapi.c \ + apple_glx.c \ + apple_glx_context.c \ + apple_glx_drawable.c \ + apple_glx_log.c \ + apple_glx_pbuffer.c \ + apple_glx_pixmap.c \ + apple_glx_surface.c \ + apple_visual.c \ + apple_xgl_api_read.c \ + apple_xgl_api_stereo.c \ + apple_xgl_api_viewport.c \ + appledri.c \ + glx_empty.c \ + glxreply.c + +libappleglx_la_LDFLAGS += -lXplugin -framework ApplicationServices -framework CoreFoundation |
