summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-18 22:46:08 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commite49862a2d283798b8d80b222acf6aa02f5459368 (patch)
treeba445fc3f8a4940c0a569c3e3288fdd7d717e171 /Makefile
parentd6cb06cd9ec1f941e8c7e05059c057e7139607df (diff)
Fixed compilation with GCC 3.0.
Fixed invalid cast (ushort * -> uint *) in openal.c.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7655330..6407973 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
CC = gcc
+CXX = gcc
+#CC = gcc-3.0
+#CXX = gcc-3.0
NASM = nasm
CFLAGS = -g -Wall -pipe -O2 -Dengine=1 -I. -Iinclude -Iwin95 -Iavp -Iavp/win95 -Iavp/support -Iavp/win95/frontend -Iavp/win95/gadgets
+#CFLAGS = -Wall -pipe -O6 -ffast-math -fomit-frame-pointer -march=pentiumpro -mcpu=pentiumpro -Dengine=1 -I. -Iinclude -Iwin95 -Iavp -Iavp/win95 -Iavp/support -Iavp/win95/frontend -Iavp/win95/gadgets
CXXFLAGS = $(CFLAGS)
LDLIBS = -lm
CFLAGS += `sdl-config --cflags`
LDLIBS += -L/usr/X11R6/lib -lX11 -lXext -lGL `sdl-config --libs` -lopenal -lm
+#LDLIBS += -lstdc++
AFLAGS = -g -Iinclude/ -w+macro-params -w+orphan-labels -w+number-overflow
@@ -50,7 +55,7 @@ OBJ = $(ROOTOBJ) $(AVPOBJ) $(SHAPESOBJ) $(SUPPORTOBJ) $(AVPWIN95OBJ) $(FRONTENDO
all: AvP
AvP: depend $(OBJ)
- gcc -o AvP $(OBJ) $(LDLIBS)
+ $(CC) -o AvP $(OBJ) $(LDLIBS)
compile: $(OBJ)