*** ./include/GL/glew.h.ORIG	Mon Jul  9 22:05:29 2012
--- ./include/GL/glew.h	Mon Jul  9 22:06:07 2012
***************
*** 201,207 ****
  
  /* SGI MIPSPro doesn't like stdint.h in C++ mode */
  
! #if defined(__sgi) && !defined(__GNUC__)
  #include <inttypes.h>
  #else
  #include <stdint.h>
--- 201,207 ----
  
  /* SGI MIPSPro doesn't like stdint.h in C++ mode */
  
! #if defined(_AIX51) || (defined(__sgi) && !defined(__GNUC__))
  #include <inttypes.h>
  #else
  #include <stdint.h>
*** ./config/Makefile.aix.ORIG	Mon Jul  9 22:36:14 2012
--- ./config/Makefile.aix	Mon Jul  9 22:31:27 2012
***************
*** 0 ****
--- 1,29 ----
+ NAME = $(GLEW_NAME)
+ CC = cc
+ LD = cc
+ ifneq (undefined, $(origin GLEW_MX))
+ CFLAGS.EXTRA = -DGLEW_MX
+ endif
+ PICFLAG =
+ LDFLAGS.SO =
+ M_ARCH ?= $(shell uname -s)
+ LDFLAGS.EXTRA = -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000
+ LIBDIR = $(GLEW_DEST)/lib
+ LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
+ LDFLAGS.STATIC =
+ LDFLAGS.DYNAMIC =
+ NAME = GLEW
+ WARN =
+ POPT = -O2
+ BIN.SUFFIX =
+ LIB.SONAME =
+ LIB.DEVLNK =
+ LIB.SHARED =
+ LIB.STATIC = lib$(NAME).a
+ LDFLAGS.SO =
+ LIB.SONAME.MX =
+ LIB.DEVLNK.MX =
+ LIB.SHARED.MX =
+ LIB.STATIC.MX = lib$(NAME)mx.a
+ LDFLAGS.SO.MX =
+ SHARED_OBJ_EXT = pic_o
*** ./Makefile.ORIG	Wed Apr 27 18:16:35 2011
--- ./Makefile	Mon Jul  9 22:52:00 2012
***************
*** 91,97 ****
  
  # GLEW libraries
  
! glew.lib: lib lib/$(LIB.SHARED) lib/$(LIB.STATIC) glew.pc
  
  lib:
  	mkdir lib
--- 91,97 ----
  
  # GLEW libraries
  
! glew.lib: lib lib/$(LIB.STATIC) glew.pc
  
  lib:
  	mkdir lib
***************
*** 99,111 ****
  lib/$(LIB.STATIC): $(LIB.OBJS)
  	$(AR) cr $@ $^
  
! lib/$(LIB.SHARED): $(LIB.SOBJS)
! 	$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
! ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
! else
! 	$(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
! 	$(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
! endif
  
  glew.pc: glew.pc.in
  	sed \
--- 99,105 ----
  lib/$(LIB.STATIC): $(LIB.OBJS)
  	$(AR) cr $@ $^
  
! lib/$(LIB.SHARED): lib/$(LIB.STATIC)
  
  glew.pc: glew.pc.in
  	sed \
***************
*** 126,143 ****
  
  # GLEW MX libraries
  
! glew.lib.mx:  lib lib/$(LIB.SHARED.MX) lib/$(LIB.STATIC.MX) glewmx.pc
  
  lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
  	$(AR) cr $@ $^
  
! lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
! 	$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
! ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
! else
! 	$(LN) $(LIB.SHARED.MX) lib/$(LIB.SONAME.MX)
! 	$(LN) $(LIB.SHARED.MX) lib/$(LIB.DEVLNK.MX)
! endif
  
  glewmx.pc: glew.pc.in
  	sed \
--- 120,131 ----
  
  # GLEW MX libraries
  
! glew.lib.mx:  lib lib/$(LIB.STATIC.MX) glewmx.pc
  
  lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
  	$(AR) cr $@ $^
  
! lib/$(LIB.SHARED.MX): lib/$(LIB.STATIC.MX)
  
  glewmx.pc: glew.pc.in
  	sed \
***************
*** 184,201 ****
  	$(INSTALL) -d -m 0755 $(BINDIR)
  	$(STRIP) -x lib/$(LIB.SHARED)
  	$(INSTALL) -m 0755 lib/$(LIB.SHARED) $(BINDIR)/
- else
- 	$(STRIP) -x lib/$(LIB.SHARED)
- 	$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
- 	$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
  endif
  # development files
  ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
  	$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
- else
- 	$(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
  endif
- 	$(STRIP) -x lib/$(LIB.STATIC)
  	$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
  
  install.lib.mx: glew.lib.mx
--- 172,182 ----
***************
*** 205,222 ****
  	$(INSTALL) -d -m 0755 $(BINDIR)
  	$(STRIP) -x lib/$(LIB.SHARED.MX)
  	$(INSTALL) -m 0755 lib/$(LIB.SHARED.MX) $(BINDIR)/
- else
- 	$(STRIP) -x lib/$(LIB.SHARED.MX)
- 	$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(LIBDIR)/
- 	$(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX)
  endif
  # development files
  ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
  	$(INSTALL) -m 0644 lib/$(LIB.DEVLNK.MX) $(LIBDIR)/
- else
- 	$(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.DEVLNK.MX)
  endif
- 	$(STRIP) -x lib/$(LIB.STATIC.MX)
  	$(INSTALL) -m 0644 lib/$(LIB.STATIC.MX) $(LIBDIR)/
  
  install.bin: glew.bin
--- 186,196 ----
***************
*** 255,263 ****
  
  clean:
  	$(RM) $(LIB.OBJS) $(LIB.OBJS.MX)
! 	$(RM) $(LIB.SOBJS) $(LIB.SOBJS.MX)
! 	$(RM) lib/$(LIB.STATIC) lib/$(LIB.SHARED) lib/$(LIB.DEVLNK) lib/$(LIB.SONAME) $(LIB.STATIC)
! 	$(RM) lib/$(LIB.STATIC.MX) lib/$(LIB.SHARED.MX) lib/$(LIB.DEVLNK.MX) lib/$(LIB.SONAME.MX) $(LIB.STATIC.MX)
  	$(RM) $(GLEWINFO.BIN.OBJS) bin/$(GLEWINFO.BIN) $(VISUALINFO.BIN.OBJS) bin/$(VISUALINFO.BIN)
  	$(RM) glew.pc glewmx.pc
  # Compiler droppings
--- 229,236 ----
  
  clean:
  	$(RM) $(LIB.OBJS) $(LIB.OBJS.MX)
! 	$(RM) lib/$(LIB.STATIC) $(LIB.STATIC)
! 	$(RM) lib/$(LIB.STATIC.MX) $(LIB.STATIC.MX)
  	$(RM) $(GLEWINFO.BIN.OBJS) bin/$(GLEWINFO.BIN) $(VISUALINFO.BIN.OBJS) bin/$(VISUALINFO.BIN)
  	$(RM) glew.pc glewmx.pc
  # Compiler droppings
