- added builder.h, to support uploading
[barry.git] / Makefile.conf
blobe743a1b8d73638f05f06e5552e25162b7f76d4b7
2 # Makefile configuration options for the Barry library and test programs
6 # debug flags  (note: __DEBUG_MODE__ also turns assert's NDEBUG off and on
7 #               appropriately)
9 #DEBUG = -g -pg -D__DEBUG_MODE__
10 #DEBUG = -g -D__DEBUG_MODE__
11 DEBUG = -g
12 #DEBUG =
13 #LDDEBUG = -u malloc -lefence
14 #LDDEBUG = -u malloc -u free -ldmalloc
15 LDDEBUG =
18 # include directories to various libraries we use
20 LIBUSBINC = ../../external/rootdir/libusb/include
21 INCLUDE = -I$(LIBUSBINC)
24 # optimization flags
25 # http://gcc.gnu.org/ml/gcc/2000-04/msg00377.html
26 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00142.html
27 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00147.html
28 # (current winner is at the top)
30 #OPTFLAGS = -frepo -fdata-sections -ffunction-sections
31 #OPTFLAGS = -frepo -fdata-sections
32 OPTFLAGS = -fno-strict-aliasing
33 #OPTFLAGS = -frepo
34 #OPTFLAGS = -fno-enforce-eh-specs -fno-default-inline -fno-implement-inlines
35 #OPTFLAGS = -fno-inline
36 #OPTFLAGS = -fno-implicit-templates
37 #OPTFLAGS = -Os -fno-strict-aliasing
38 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer
39 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer -mcpu=i386
42 # warning and error checking flags
44 #WARNFLAGS =
45 WARNFLAGS = -ansi -Wall
46 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
47 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
50 # compiler flags
52 CXX = g++
53 CXXFLAGS = $(WARNFLAGS) $(OPTFLAGS) $(INCLUDE) $(SPECIAL) $(DEBUG)
54 #LDFLAGS = -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)
55 LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a -lpthread $(LDDEBUG)
56 #LDFLAGS = -Wl,--gc-sections -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)