blob: aacc22812ada8a0a9eb4c198485ff8b84f114109 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
--- Make-config.orig Sun Aug 30 05:27:56 1998
+++ Make-config Wed Sep 30 14:50:03 1998
@@ -1,8 +1,12 @@
# Make-config
-MAJOR=3
+MAJOR=14
MINOR=0
+.if ${PORTOBJFORMAT} == "elf"
+VERSION=$(MAJOR)
+.else
VERSION=$(MAJOR).$(MINOR)
+.endif
# Mesa 3-D graphics library
# Copyright (C) 1995-1998 Brian Paul
@@ -281,6 +285,16 @@
"MAKELIB = ../mklib.freebsd" \
"XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
+freebsd-elf:
+ $(MAKE) $(MFLAGS) targets \
+ "GL_LIB = libMesaGL.a" \
+ "GLU_LIB = libMesaGLU.a" \
+ "GLUT_LIB = libglut.a" \
+ "CC = gcc" \
+ "CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \
+ "MAKELIB = ../mklib.freebsd" \
+ "XLIBS = -Wl,-rpath,${X11BASE}/lib -L${X11BASE}/lib -lXext -lXmu -lXi -lX11"
+
freebsd-386:
$(MAKE) $(MFLAGS) targets \
"GL_LIB = libMesaGL.a" \
@@ -291,6 +305,17 @@
"MAKELIB = ../mklib.freebsd" \
"XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11" \
"ASM_SOURCES = asm_386.S"
+
+freebsd-386-elf:
+ $(MAKE) $(MFLAGS) targets \
+ "GL_LIB = libMesaGL.a" \
+ "GLU_LIB = libMesaGLU.a" \
+ "GLUT_LIB = libglut.a" \
+ "CC = gcc" \
+ "CFLAGS = -O3 -ffast-math -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100 -DUSE_X86_ASM" \
+ "MAKELIB = ../mklib.freebsd" \
+ "XLIBS = -Wl,-rpath,${X11BASE}/lib -L${X11BASE}/lib -lXext -lXmu -lXi -lX11" \
+ "ASM_SOURCES = asm_386.S"
gcc:
$(MAKE) $(MFLAGS) targets \
|