blob: 447faf9f4cf7ab40123c754d3fe85c92322d3ec9 [file] [log] [blame]
Brian Paula70ad912004-03-26 15:16:35 +00001# Configuration for FreeBSD
2
3include $(TOP)/configs/default
4
5CONFIG_NAME = FreeBSD
6
7# Compiler and flags
Brian Paul168a7512006-03-07 01:11:05 +00008CC = cc
9CXX = c++
Eric Anholt2fb5d152004-06-01 00:06:14 +000010MAKE = gmake
Brian Paula70ad912004-03-26 15:16:35 +000011
Brian Paul168a7512006-03-07 01:11:05 +000012OPT_FLAGS = -O2
13PIC_FLAGS = -fPIC
14
Ian Romanicka7d02562006-08-16 17:06:08 +000015DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \
Brian6fae6672007-07-31 14:57:37 -060016 -DHZ=100
Brian Paul168a7512006-03-07 01:11:05 +000017
18X11_INCLUDES = -I/usr/X11R6/include
19
20CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic
21
22CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES)
23
Brian Paula70ad912004-03-26 15:16:35 +000024GLUT_CFLAGS = -fexceptions
25
Brian Paul168a7512006-03-07 01:11:05 +000026EXTRA_LIB_PATH = -L/usr/X11R6/lib
Brian Paul883f9892006-07-13 02:50:27 +000027APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm