]> git.sesse.net Git - freerainbowtables/commitdiff
NetBSD support for the distrrtgen Makefile
authorJames Nobis <quel@quelrod.net>
Mon, 10 Jan 2011 06:27:01 +0000 (00:27 -0600)
committerJames Nobis <quel@quelrod.net>
Mon, 10 Jan 2011 06:27:01 +0000 (00:27 -0600)
fix a couple of unused variables and warnings

BOINC software/BOINC client apps/distrrtgen/Makefile
BOINC software/BOINC client apps/distrrtgen/distrrtgen.cpp
Common/rt api/spr.h

index 3d5f77fed6db0a3a2890634affa7f3dc65b9e4d3..ab52476c602e35a15b835a0e27c572c6f496451f 100644 (file)
 SHELL = /bin/sh
 
 #BOINC_DIR = /home/ubuntu/boinc
+# Debian
 BOINC_DIR = /usr/share/boinc-dev
+# FreeBSD
+#BOINC_DIR = /usr/local/lib
+# Linux
 BOINC_API_DIR = $(BOINC_DIR)/api
+# FreeBSD
+#BOINC_API_DIR = /usr/local/lib
+# Linux
 BOINC_LIB_DIR = $(BOINC_DIR)/lib
+# FreeBSD
+#BOINC_LIB_DIR = $(BOINC_DIR)
+#BOINC_INC_DIR = /usr/local/include/boinc
 CC = g++
 COMMON_LIB_DIR = /usr/lib
-INCLUDES = -I../../../Common/rt\ api -I$(BOINC_DIR) -I$(BOINC_LIB_DIR) -I$(BOINC_API_DIR) 
+INCLUDES = -I../../../Common/rt\ api -I$(BOINC_DIR) -I$(BOINC_LIB_DIR) -I$(BOINC_API_DIR) -I$(BOINC_INC_DIR)
 COMMON_API_PATH = ../../../Common/rt\ api
 
 OPTIMIZATION = -O3
@@ -62,6 +72,9 @@ libstdc++.a:
 clean:
        /bin/rm -f distrrtgen *.o
 
+debug: DEBUG += -DDEBUG -g
+debug: all
+
 distclean:
        /bin/rm -f distrrtgen *.o libstdc++.a
 
index 8245a6bb25cb49a514fe718a68053a5fdd88f3db..240562e1515b622a74b1b22f1b2a9204918f2e33 100644 (file)
@@ -103,8 +103,8 @@ void QuickSort(RainbowChainCP* pChain, int nLow, int nHigh)
 int main(int argc, char **argv) {    
     int retval;
     double fd;
-    char output_path[512], chkpt_path[512];
-    FILE* state;       
+    char output_path[512]; //, chkpt_path[512];
+    //FILE* state;     
     retval = boinc_init();
     if (retval) {
         fprintf(stderr, "boinc_init returned %d\n", retval);
@@ -220,7 +220,7 @@ int main(int argc, char **argv) {
        
        // Check existing chains
        unsigned int nDataLen = (unsigned int)GetFileLen(outfile);
-       unsigned int nFileLen;
+       //unsigned int nFileLen;
        
        // Round to boundary
        nDataLen = nDataLen / 10 * 10;
@@ -235,7 +235,7 @@ int main(int argc, char **argv) {
        size_t nReturn;
        CChainWalkContext cwc;
        uint64 nIndex[2];
-       time_t tStart = time(NULL);
+       //time_t tStart = time(NULL);
 //     std::cout << "Starting to generate chains" << std::endl;
        for(uint32 nCurrentCalculatedChains = nDataLen / 10; nCurrentCalculatedChains < nRainbowChainCount; nCurrentCalculatedChains++)
        {               
index 187cd269bd8d5f1f6a27dca25d743bd6981a0263..c3a6bdcb1e6eaf9cecd2467ba83bcde16a93dc23 100644 (file)
@@ -209,4 +209,4 @@ const DES_LONG des_SPtrans[8][64]={
 0x20000000L, 0x20800080L, 0x00020000L, 0x00820080L,
 }};
 
-#endif
\ No newline at end of file
+#endif