summaryrefslogtreecommitdiff
path: root/configs/freebsd
blob: 38806ab946d6b2be08292a0dec6cd176d27f7930 (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
# Configuration for FreeBSD

include $(TOP)/configs/default

CONFIG_NAME = FreeBSD

# Compiler and flags
CC = cc
CXX = c++
MAKE = gmake

# cp -d not supported on FreeBSD (see bug 4435)
COPY_LIBS = cp -f

OPT_FLAGS  = -O2
PIC_FLAGS  = -fPIC

DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
	-DHZ=100 -DHAVE_POSIX_MEMALIGN

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

EXTRA_LIB_PATH = -L/usr/X11R6/lib
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm