blob: 92cd5a521a83269ac10ded73d2973e690567be08 (
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
|
--- Makefile.Linux.Mesa.orig Sun Feb 2 12:59:42 1997
+++ Makefile.Linux.Mesa Sat Dec 4 08:56:39 2004
@@ -3,23 +3,23 @@
.SUFFIXES: .cc .o
-ARCH = -DLINUX -DMESA #-DSOUND
+TARCH = -DLINUX -DPREFIX=\"$(PREFIX)\" #-DUSING_MESA -DSOUND
MESA = Mesa
-INCLUDE = -I/usr/include -I$(MESA)/include -I$(MESA)/include/GL
+INCLUDE = -I$(X11BASE)/include -I$(X11BASE)/include/GL
-CFLAGS = $(INCLUDE) $(ARCH) -O2 -m486 -Wall -pipe \
- -pedantic -funroll-loops -mieee-fp
+CFLAGS += $(INCLUDE) $(TARCH) -DSOUND -Wall -pipe ${PTHREAD_CFLAGS} \
+ -pedantic -funroll-loops
-LDFLAGS = -L/usr/X11R6/lib -L$(MESA)/lib
+LDFLAGS = -L$(X11BASE)/lib
TAR = tar
COMPRESS = compress -v
MV = mv
RM = rm -f
LS = /bin/ls
-CC = gcc -Wall
+CC ?= gcc -Wall
CD = cd
.c.o:
@@ -31,8 +31,7 @@
linux-elf: $(Obj)
@echo "Linking $(Obj) to $(EXECNAME)..."
$(CC) -o $(EXECNAME) $(Obj) $(LDFLAGS) \
- -lMesaaux -lMesatk -lMesaGLU -lMesaGL \
- -lXext -lX11 -lm
+ -laux -lGLU -lGL -lXext -lX11 -lm $(PTHREAD_LIBS)
@echo "****** Done ******"
linux: $(Obj)
|