Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 1 | # Configuration for FreeBSD |
| 2 | |
| 3 | include $(TOP)/configs/default |
| 4 | |
| 5 | CONFIG_NAME = FreeBSD |
| 6 | |
| 7 | # Compiler and flags |
Brian Paul | 168a751 | 2006-03-07 01:11:05 +0000 | [diff] [blame] | 8 | CC = cc |
| 9 | CXX = c++ |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 10 | MAKE = gmake |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 11 | |
Brian Paul | 168a751 | 2006-03-07 01:11:05 +0000 | [diff] [blame] | 12 | OPT_FLAGS = -O2 |
| 13 | PIC_FLAGS = -fPIC |
| 14 | |
Ian Romanick | a7d0256 | 2006-08-16 17:06:08 +0000 | [diff] [blame] | 15 | DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM \ |
Brian | 6fae667 | 2007-07-31 14:57:37 -0600 | [diff] [blame] | 16 | -DHZ=100 |
Brian Paul | 168a751 | 2006-03-07 01:11:05 +0000 | [diff] [blame] | 17 | |
| 18 | X11_INCLUDES = -I/usr/X11R6/include |
| 19 | |
| 20 | CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) -ffast-math -pedantic |
| 21 | |
| 22 | CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) $(X11_INCLUDES) |
| 23 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 24 | GLUT_CFLAGS = -fexceptions |
| 25 | |
Brian Paul | 168a751 | 2006-03-07 01:11:05 +0000 | [diff] [blame] | 26 | EXTRA_LIB_PATH = -L/usr/X11R6/lib |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 27 | APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm |