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
clean:
/bin/rm -f distrrtgen *.o
+debug: DEBUG += -DDEBUG -g
+debug: all
+
distclean:
/bin/rm -f distrrtgen *.o libstdc++.a
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);
// Check existing chains
unsigned int nDataLen = (unsigned int)GetFileLen(outfile);
- unsigned int nFileLen;
+ //unsigned int nFileLen;
// Round to boundary
nDataLen = nDataLen / 10 * 10;
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++)
{
0x20000000L, 0x20800080L, 0x00020000L, 0x00820080L,
}};
-#endif
\ No newline at end of file
+#endif