- updated time conversion calls to match opensync's latest SVN
[barry.git] / Makefile.conf
blob71f378fdaf0ad375469b0635e9a66300c6af8a35
2 # Makefile configuration options for the Barry library and test programs
6 # Target install directory
8 INSTALLDIR = install
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
15 #BOOSTFLAG =
16 #LDBOOST =
19 # debug flags  (note: __DEBUG_MODE__ also turns assert's NDEBUG off and on
20 #               appropriately)
22 #DEBUG = -g -pg -D__DEBUG_MODE__
23 #DEBUG = -g -D__DEBUG_MODE__
24 DEBUG = -g
25 #DEBUG =
26 #LDDEBUG = -u malloc -lefence
27 #LDDEBUG = -u malloc -u free -ldmalloc
28 LDDEBUG =
31 # include directories to various libraries we use
33 LIBUSBINC = ../../external/rootdir/libusb/include
34 INCLUDE = -I$(LIBUSBINC)
37 # optimization flags
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
46 #OPTFLAGS = -frepo
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
57 #WARNFLAGS =
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
63 # compiler flags
65 CXX = g++
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)