
CPLUSPLUS	= g++
CC		= gcc

# Location of Xerces XML parser library:
XERCES_INC	= -ISpines 
# XERCES_LIB	= -L$(LIB) -lxerces-c1_5_1-ia64-gcc411 -lpthread -lrt

SYS_OPT		+= 

SYS_INCS	+=

SYS_LINK	+=

SYS_LIBS	+= 

SYS_WARN	+= -ansi -pedantic

# compiler options controlling C++ dialects:
# for compiling
SYS_LANG	+= -fno-nonansi-builtins

# compiler options controlling C++ dialects:
# for optimization and code-generation

# compiler options to request or suppress warnings:
# warnings not implied by -Wall and -Wextra
SYS_WARN	+= -Wsign-promo -Woverloaded-virtual

# the ctor-dtor-privacy flag is buggy in 4.1.1
ifneq ($(GPP_VERSION),4.1.1)
     SYS_WARN	+= -Wctor-dtor-privacy 
endif

# preprocessor options (for additional warnings)
SYS_WARN	+= -Wendif-labels

# For more stringent checks, add the following options:

# SYS_WARN	+= -Wunused
# overrides -Wno-unused (i.e. standard -Wall)
# warns against unused functions, labels, parameters, variables and values

# SYS_WARN	+= -Wfloat-equal
# warns against floating point (in)equality comparisons

# SYS_WARN	+= -Wwrite-strings
# warns against code that can try to write into a string constant

# SYS_WARN	+= -Wold-style-cast
# warns against old-style (C-style) casts to non-void types in C++ programs

# SYS_WARN	+= -Wformat=2
# equivalent to -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k
# -Wformat-nonliteral issues a warning if the format string (to printf, scanf, etc)
#		      is not a literal string and so cannot be checked
# -Wformat-security   issues a warning against using format functions that represent
#		      security problems, such as a nonliteral format string with
#		      no format arguments
# -Wformat-y2k	      issues a warning against strftime format which may yield
#		      a two-digit year

#endif

# For specific object files, suppress warnings from the assembler, all of 
# which are (at the moment) the "Additional NOP may be neccessary to work 
# around Itanium A/B step errata" warnings, which don't apply to Itanium 2 
# processors.  These lines should be removed from this Makefile if they ever 
# provide a fix to remove or suppress that warning specifically.

# Since this file is included before anything other targets are defined, the first
# target in this file is the default target if "make" is called without specifying
# a target.  So, we "forward declare" the target "all", which is defined later in
# Makefile_targets.
all:

assemble/PullApart.o: assemble/PullApart.cc
	@ mkdir -p $(OBJ)/${@D}
	$(CPLUSPLUS) $(CPPC) -Wa,-W -c $(SRC)/$*.cc -o $(OBJ)/$*.o

assembly/display/PsSuperRegion.o: assembly/display/PsSuperRegion.cc
	@ mkdir -p $(OBJ)/${@D}
	$(CPLUSPLUS) $(CPPC) -Wa,-W -c $(SRC)/$*.cc -o $(OBJ)/$*.o

mapped/MarkerHitMgr.o: mapped/MarkerHitMgr.cc
	@ mkdir -p $(OBJ)/${@D}
	$(CPLUSPLUS) $(CPPC) -Wa,-W -c $(SRC)/$*.cc -o $(OBJ)/$*.o

MergeReads.o: MergeReads.cc
	@ mkdir -p $(OBJ)/${@D}
	$(CPLUSPLUS) $(CPPC) -Wa,-W -c $(SRC)/$*.cc -o $(OBJ)/$*.o
