2 # Makefile configuration options for the Barry library and test programs
6 # Target install directory
11 # Boost library usage - required for serialization support, but optional
13 BOOSTFLAG = -D__BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
14 LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
19 # debug flags (note: __DEBUG_MODE__ also turns assert's NDEBUG off and on
22 #DEBUG = -g -pg -D__DEBUG_MODE__
23 #DEBUG = -g -D__DEBUG_MODE__
26 #LDDEBUG = -u malloc -lefence
27 #LDDEBUG = -u malloc -u free -ldmalloc
31 # include directories to various libraries we use
33 LIBUSBINC = ../../external/rootdir/libusb/include
34 INCLUDE = -I$(LIBUSBINC)
38 # http://gcc.gnu.org/ml/gcc/2000-04/msg00377.html
39 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00142.html
40 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00147.html
41 # (current winner is at the top)
43 #OPTFLAGS = -frepo -fdata-sections -ffunction-sections
44 #OPTFLAGS = -frepo -fdata-sections
45 OPTFLAGS = -fno-strict-aliasing
47 #OPTFLAGS = -fno-enforce-eh-specs -fno-default-inline -fno-implement-inlines
48 #OPTFLAGS = -fno-inline
49 #OPTFLAGS = -fno-implicit-templates
50 #OPTFLAGS = -Os -fno-strict-aliasing
51 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer
52 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer -mcpu=i386
55 # warning and error checking flags
58 WARNFLAGS = -ansi -Wall
59 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
60 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
66 CXXFLAGS = $(WARNFLAGS) $(OPTFLAGS) $(INCLUDE) $(BOOSTFLAG) $(DEBUG)
67 #LDFLAGS = -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)
68 LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
69 #LDFLAGS = -Wl,--gc-sections -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)