]> git.sesse.net Git - freerainbowtables/commitdiff
misc fixes stemming from issues with my #ifdef 0 and a commented out include
authorJames Nobis <quel@quelrod.net>
Sun, 7 Nov 2010 23:07:21 +0000 (17:07 -0600)
committerJames Nobis <quel@quelrod.net>
Sun, 7 Nov 2010 23:07:21 +0000 (17:07 -0600)
BOINC software/BOINC client apps/distrrtgen/Makefile
Common/rt api/Public.cpp
Common/rt api/des_enc.c

index d33961fc715be421dd145305e73c644acb5c4396..3d5f77fed6db0a3a2890634affa7f3dc65b9e4d3 100644 (file)
@@ -27,6 +27,7 @@ SHELL = /bin/sh
 BOINC_DIR = /usr/share/boinc-dev
 BOINC_API_DIR = $(BOINC_DIR)/api
 BOINC_LIB_DIR = $(BOINC_DIR)/lib
+CC = g++
 COMMON_LIB_DIR = /usr/lib
 INCLUDES = -I../../../Common/rt\ api -I$(BOINC_DIR) -I$(BOINC_LIB_DIR) -I$(BOINC_API_DIR) 
 COMMON_API_PATH = ../../../Common/rt\ api
@@ -39,10 +40,11 @@ CXXFLAGS = -g \
         -c \
         -DBOINC \
         $(INCLUDES) \
-        $(OPTIMIZATION)
+        $(OPTIMIZATION) \
+        $(DEBUG)
 
 LFLAGS = -static -static-libgcc -Wall $(INCLUDES) $(OPTIMIZATION) -L$(BOINC_API_DIR) \
-       -L$(BOINC_LIB_DIR) -L /usr/X11R6/lib -L.
+       -L$(BOINC_LIB_DIR) -L /usr/X11R6/lib -L. $(DEBUG)
 
 LIBS = -lboinc_api -lboinc -lpthread -lssl libstdc++.a $(COMMON_LIB_DIR)/libssl.a $(COMMON_LIB_DIR)/libpthread.a
 OBJS = ChainWalkContext.o des_enc.o des_setkey.o distrrtgen.o ecb_enc.o HashAlgorithm.o HashRoutine.o md4.o md5.o Public.o
@@ -55,7 +57,7 @@ distrrtgen: libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboin
        $(CXX) $(LFLAGS) $(OBJS) $(LIBS) -o distrrtgen
 
 libstdc++.a:
-       ln -s `g++ -print-file-name=libstdc++.a`
+       ln -s `$(CC) $(DEBUG) -print-file-name=libstdc++.a`
 
 clean:
        /bin/rm -f distrrtgen *.o
index b42c954918123518222083caa999476cf45c2118..dc23bace726e0eb756b02ef28074b81224b5ca5d 100644 (file)
@@ -209,7 +209,7 @@ bool GetHybridCharsets(string sCharset, vector<tCharset>& vCharset)
 bool boinc_ReadLinesFromFile(string sPathName, vector<string>& vLine)
 {
        vLine.clear();
-#ifdef 0
+#ifdef USE_INTEGRATED_CHARSET
        vLine.push_back("byte                        = []");
        vLine.push_back("alpha                       = [ABCDEFGHIJKLMNOPQRSTUVWXYZ]");
        vLine.push_back("alpha-space                 = [ABCDEFGHIJKLMNOPQRSTUVWXYZ ]");
index f2c99b7d64d086728dd5664180f4b12ac1616c31..75c2de543b538270ecfa7fa72aedf517ebcb2af0 100644 (file)
@@ -60,7 +60,7 @@
  */
 
 #include "des_locl.h"
-//#include "spr.h"
+#include "spr.h"
 
 extern const DES_LONG des_SPtrans[8][64];