summaryrefslogtreecommitdiff
path: root/graphics/oglext/files/patch-build_linux-gcc_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/oglext/files/patch-build_linux-gcc_Makefile')
-rw-r--r--graphics/oglext/files/patch-build_linux-gcc_Makefile91
1 files changed, 91 insertions, 0 deletions
diff --git a/graphics/oglext/files/patch-build_linux-gcc_Makefile b/graphics/oglext/files/patch-build_linux-gcc_Makefile
new file mode 100644
index 000000000000..d705152277c6
--- /dev/null
+++ b/graphics/oglext/files/patch-build_linux-gcc_Makefile
@@ -0,0 +1,91 @@
+--- build/linux-gcc/Makefile.orig Mon Feb 2 19:30:41 2004
++++ build/linux-gcc/Makefile Mon Feb 2 19:34:14 2004
+@@ -8,28 +8,28 @@
+
+ ####### Compiler, tools and options
+
+-CC = gcc
+-CXX = g++
+-LEX = flex
+-YACC = yacc
+-CFLAGS = -pipe -Wall -W -fPIC
+-CXXFLAGS = -pipe -Wall -W -fPIC
+-LEXFLAGS =
+-YACCFLAGS= -d
+-LINK = g++
++#CC = gcc
++#CXX = g++
++#LEX = flex
++#YACC = yacc
++CFLAGS += -pipe -Wall -W -fPIC -I${X11BASE}/include
++CXXFLAGS += -pipe -Wall -W -fPIC -I${X11BASE}/include
++#LEXFLAGS =
++#YACCFLAGS= -d
++LINK = ${CXX}
+ LFLAGS = -shared -Wl,-soname,libOglExt.so.1
+-LIBS =
+-AR = ar cqs
+-RANLIB =
+-TAR = tar -cf
+-GZIP = gzip -9f
+-COPY = cp -f
+-COPY_FILE= $(COPY) -p
+-COPY_DIR = $(COPY) -pR
+-DEL_FILE = rm -f
+-SYMLINK = ln -sf
+-DEL_DIR = rmdir
+-MOVE = mv -f
++LIBS = -L${X11BASE}/lib -lGL
++#AR = ${AR} cqs
++#RANLIB =
++#TAR = ${TAR} -cf
++#GZIP = ${GZIP_CMD} -9f
++#COPY = ${CP} -f
++#COPY_FILE= $(COPY) -p
++#COPY_DIR = $(COPY) -pR
++DEL_FILE = ${RM} -f
++SYMLINK = ${LN} -sf
++#DEL_DIR = ${RMDIR}
++#MOVE = ${MV} -f
+
+ ####### Output directory
+
+@@ -45,12 +45,12 @@
+ RenderingContext.cpp
+ OBJECTS = OglExt.o \
+ RenderingContext.o
+-TARGET = libOglExt.so.1.0.0
++TARGET = libOglExt.so.1
+ TARGETA = libOglExt.a
+-TARGETD = libOglExt.so.1.0.0
+-TARGET0 = libOglExt.so
+-TARGET1 = libOglExt.so.1
+-TARGET2 = libOglExt.so.1.0
++#TARGETD = libOglExt.so.1.0.0
++#TARGET0 = libOglExt.so
++#TARGET1 = libOglExt.so.1
++#TARGET2 = libOglExt.so.1.0
+
+ first: all
+ ####### Implicit rules
+@@ -74,15 +74,15 @@
+
+ ####### Build rules
+
+-all: Makefile $(TARGET)
++all: $(TARGET) $(TARGETA)
+
+ $(TARGET): $(OBJECTS)
+- -$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
++ -$(DEL_FILE) $(TARGET)
+ $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
+- -ln -s $(TARGET) $(TARGET0)
+- -ln -s $(TARGET) $(TARGET1)
+- -ln -s $(TARGET) $(TARGET2)
+
++$(TARGETA): $(OBJECTS)
++ -$(DEL_FILE) $(TARGETA)
++ $(AR) cqs $@ $(OBJECTS)
+
+ clean:
+ -$(DEL_FILE) $(OBJECTS)