summaryrefslogtreecommitdiff
path: root/configs/freebsd
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-03-07 01:11:05 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-03-07 01:11:05 +0000
commit168a7516b1aee46a142f0b250ee27ef6c6e96fbc (patch)
tree16350d7c10e8e7833d5304cf2e8a6445f24c5f50 /configs/freebsd
parentc107058e7e858c0b6da195e337cce0621f31b91d (diff)
FreeBSD updates (Pedro Giffuni)
Diffstat (limited to 'configs/freebsd')
-rw-r--r--configs/freebsd21
1 files changed, 15 insertions, 6 deletions
diff --git a/configs/freebsd b/configs/freebsd
index 95e51f2515..c390b8bf9c 100644
--- a/configs/freebsd
+++ b/configs/freebsd
@@ -5,13 +5,22 @@ include $(TOP)/configs/default
CONFIG_NAME = FreeBSD
# Compiler and flags
-CC = gcc
-CXX = g++
+CC = cc
+CXX = c++
MAKE = gmake
-CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100 \
- $(ASM_FLAGS)
-CXXFLAGS = -O2 -fPIC -pedantic
+OPT_FLAGS = -O2
+PIC_FLAGS = -fPIC
+
+DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM -DHZ=100
+
+X11_INCLUDES = -I/usr/X11R6/include
+
+CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
+
+CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
+
GLUT_CFLAGS = -fexceptions
-APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
+EXTRA_LIB_PATH = -L/usr/X11R6/lib
+APP_LIB_DEPS = -L$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm