summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile5
-rw-r--r--bgrep.cpp2
-rw-r--r--includes/cdutils.h (renamed from cdutils.h)0
-rw-r--r--includes/fileutils.h (renamed from fileutils.h)0
-rw-r--r--includes/generic.h (renamed from generic.h)0
-rw-r--r--includes/lzss.h (renamed from lzss.h)0
-rw-r--r--includes/yazedc.h (renamed from yazedc.h)0
7 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ff1f7c2..f8e9ad3 100755
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -Werror
CXX=g++
SUBDIRS = psxdev Xenogears VP MegamanX5
-TARGET = lzss dlzss cd-tool str-tool crypto-search
+TARGET = lzss dlzss cd-tool str-tool crypto-search bgrep
all: subdirs ${TARGET}
@@ -32,6 +32,9 @@ str-tool: str-util.o generic.h generic.o fileutils.o fileutils.h cdutils.o cduti
crypto-search: crypto-search.o generic.h generic.o fileutils.o fileutils.h Makefile
${CXX} ${LDFLAGS} crypto-search.o generic.o fileutils.o -o crypto-search
+bgrep: bgrep.o generic.h generic.o fileutils.h fileutils.o Makefile
+ ${CXX} ${LDFLAGS} bgrep.o generic.o fileutils.o -o bgrep
+
clean:
for d in ${SUBDIRS} ; do make -C $$d clean || exit -1 ; done
rm -f *.o ${TARGET} compil.c
diff --git a/bgrep.cpp b/bgrep.cpp
index f67b39f..30be341 100644
--- a/bgrep.cpp
+++ b/bgrep.cpp
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include "fileutils.h"
+#define THRESHOLD 20480
+
int main(int argc, char ** argv) {
unsigned int p = strtol(argv[1], 0, 0);
char * fn = argv[2];
diff --git a/cdutils.h b/includes/cdutils.h
index 3dcf7ac..3dcf7ac 100644
--- a/cdutils.h
+++ b/includes/cdutils.h
diff --git a/fileutils.h b/includes/fileutils.h
index a552477..a552477 100644
--- a/fileutils.h
+++ b/includes/fileutils.h
diff --git a/generic.h b/includes/generic.h
index 04c91fa..04c91fa 100644
--- a/generic.h
+++ b/includes/generic.h
diff --git a/lzss.h b/includes/lzss.h
index 127a494..127a494 100644
--- a/lzss.h
+++ b/includes/lzss.h
diff --git a/yazedc.h b/includes/yazedc.h
index b990d3e..b990d3e 100644
--- a/yazedc.h
+++ b/includes/yazedc.h