APP_OBJECTS= main.o silent_code.o configuration_manager.o tool.o config.o
CCFLAGS+=-Wall
-
BUILD_STAMP="\"`uname -a`\""
VERSION="\"1.0\""
BUILD_DATE="\"`date` \""
+CXX?=g++
+
CCFLAGS+=-D BUILD_STAMP=$(BUILD_STAMP) -D VERSION=$(VERSION) -D BUILD_DATE=$(BUILD_DATE)
BLOCK_OBJECTS=tape_block.o eot_block.o data_block.o broken_block.o\
data_block_0_label_extractor.o data_block_1.o data_block_2.o\
data_block_3.o data_block_4.o data_block_5.o \
data_block_6.o data_block_7.o
-
OBJECTS=$(BLOCK_OBJECTS) $(APP_OBJECTS)
%.dep : $(SRC_DIR)/%.cpp
@ echo Building dependencies for $<.
- @$(SHELL) -c "g++ -M $<" | awk 'BEGIN {N=0}{if(N==0)printf("%s %s\n","$@",$$0);else printf("%s\n", $$0);N+=1;}' > $@
-
+ @$(SHELL) -c "$(CXX) -M $<" | awk 'BEGIN {N=0}{if(N==0)printf("%s %s\n","$@",$$0);else printf("%s\n", $$0);N+=1;}' > $@
%.o : $(SRC_DIR)/%.cpp %.dep
- g++ -c $(CCFLAGS) -o $@ $<
+ $(CXX) -c $(CCFLAGS) -o $@ $<
$(APP_NAME) : $(OBJECTS)
- g++ -o$@ $^
+ $(CXX) -o$@ $^
saustall: $(OBJECTS:.o=.dep)
while(read_ahead){
- bool err_checksum=false; //! Checksum error flag.
- bool err_integrity=false; //! Integrity error flag.
+ // bool err_checksum=false; //! Checksum error flag.
+ // bool err_integrity=false; //! Integrity error flag.
bool warning=false; //! Warning flag.
bool error=false; //! Error flag.
catch(tape_block::eof_illegal_exception &e){
block=e.get_block();
- err_integrity=true;
+ // err_integrity=true;
read_ahead=false;
if (cfg_ignore_block_errors){
message="Warning: Block integrity check failed!\n";
catch(tape_block::checksum_error_exception &e){
block=e.get_block();
- err_checksum=true;
+ // err_checksum=true;
if (cfg_ignore_checksum_errors){
message="Warning: Block checksum wrong!\n";
warning=true;