blob: bdd088b050e3454142f679ad41ea121ac1672624 (
plain) (
blame)
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
|
--- Makefile.orig Tue Oct 13 09:16:35 1998
+++ Makefile Sun Feb 6 16:36:08 2000
@@ -5,8 +5,8 @@
#--------------------------------------------------------------------------
# Where you want to have it installed
-BINDIR = /usr/X11/bin
-MANDIR = /usr/X11/man/man1
+BINDIR = /usr/X11R6/bin
+MANDIR = /usr/X11R6/man/man1
# Use these for Mesa
#GL = -lglut -lMesaGLU -lMesaGL
@@ -15,11 +15,14 @@
GL = -lglut -lGLU -lGL
# Use these for gcc on Linux (may work in other systems as well)
-CC = gcc
-CFLAGS = -O3 -fomit-frame-pointer -ffast-math -Wall -Wno-implicit-int
-LD = gcc
+CC ?= gcc
+CFLAGS ?= -pipe -O2 -fexpensive-optimizations -ffast-math -fomit-frame-pointer \
+ -fforce-mem -fforce-addr
+CFLAGS += -Wall -Wno-implicit-int -I/usr/X11R6/include \
+ -I/usr/local/include
+LD = $(CC)
LDFLAGS = -o $@
-LIBS = -L/usr/X11/lib -L/usr/local/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
+LIBS = -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/local/lib $(GL) -lX11 -lXext -lXmu -lXi -lm
# Use these for cc on IRIX (submitted by Andrew Dalke <dalke@bioreason.com>)
#CC = cc
|