- added boost::serialization to build
[barry.git] / Makefile.conf
blob022f03fe9208ca6e3dd249faffdaa01ddf191801
2 # Makefile configuration options for the Barry library and test programs
6 # Boost library usage - required for serialization support, but optional
8 BOOSTFLAG = -D__BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
9 LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
10 #BOOSTFLAG =
11 #LDBOOST =
14 # debug flags  (note: __DEBUG_MODE__ also turns assert's NDEBUG off and on
15 #               appropriately)
17 #DEBUG = -g -pg -D__DEBUG_MODE__
18 #DEBUG = -g -D__DEBUG_MODE__
19 DEBUG = -g
20 #DEBUG =
21 #LDDEBUG = -u malloc -lefence
22 #LDDEBUG = -u malloc -u free -ldmalloc
23 LDDEBUG =
26 # include directories to various libraries we use
28 LIBUSBINC = ../../external/rootdir/libusb/include
29 INCLUDE = -I$(LIBUSBINC)
32 # optimization flags
33 # http://gcc.gnu.org/ml/gcc/2000-04/msg00377.html
34 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00142.html
35 # http://gcc.gnu.org/ml/gcc-help/2004-12/msg00147.html
36 # (current winner is at the top)
38 #OPTFLAGS = -frepo -fdata-sections -ffunction-sections
39 #OPTFLAGS = -frepo -fdata-sections
40 OPTFLAGS = -fno-strict-aliasing
41 #OPTFLAGS = -frepo
42 #OPTFLAGS = -fno-enforce-eh-specs -fno-default-inline -fno-implement-inlines
43 #OPTFLAGS = -fno-inline
44 #OPTFLAGS = -fno-implicit-templates
45 #OPTFLAGS = -Os -fno-strict-aliasing
46 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer
47 #OPTFLAGS = -Os -fno-strict-aliasing -fomit-frame-pointer -mcpu=i386
50 # warning and error checking flags
52 #WARNFLAGS =
53 WARNFLAGS = -ansi -Wall
54 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
55 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
58 # compiler flags
60 CXX = g++
61 CXXFLAGS = $(WARNFLAGS) $(OPTFLAGS) $(INCLUDE) $(BOOSTFLAG) $(DEBUG)
62 #LDFLAGS = -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)
63 LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
64 #LDFLAGS = -Wl,--gc-sections -s -lmysqlpp -lfaxutil -lldap $(LDDEBUG)