summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2002-06-10 22:38:57 +0000
committerPixel <Pixel>2002-06-10 22:38:57 +0000
commit759366a5b52a6d054ccbc203ef419be3f9f610ba (patch)
tree8cf665ab1a3629bb39929abb7fa4c310548ffdf2
parentfef24239144eb44f2a29f32c7272a1dd725dbe37 (diff)
Fixing some typos etc...
-rwxr-xr-xXenogears/Makefile13
-rw-r--r--Xenogears/main_dump.cpp1
2 files changed, 12 insertions, 2 deletions
diff --git a/Xenogears/Makefile b/Xenogears/Makefile
index 7bb9299..9f53b9a 100755
--- a/Xenogears/Makefile
+++ b/Xenogears/Makefile
@@ -3,12 +3,12 @@
CPPFLAGS=-Wall -g -I. -O3 -mcpu=i686
CXX=g++
-TARGET = lzss dlzss yazedc cd-tool reinsert
+TARGET = lzss dlzss yazedc cd-tool reinsert main_dump XenoCD1.sqr XenoCD2.sqr
all: ${TARGET}
lzss: lzss.cpp lzss.h generic.cpp generic.h fileutils.h fileutils.cpp
- ${CXX} ${CPPFLAGS} ${LDFLAGS} -Dlzss_MAIN lzss.cpp generic.cpp fileutils.cpp -o lzss
+ ${CXX} ${CPPFLAGS} ${LDFLAGS} -DLZSS_MAIN lzss.cpp generic.cpp fileutils.cpp -o lzss
dlzss: lzss
ln -fs lzss dlzss
@@ -19,8 +19,17 @@ yazedc: yazedc.cpp crctables crctable.out
cd-tool: cd-tool.cpp cdutils.cpp cdutils.h fileutils.cpp fileutils.h generic.cpp generic.h yazedc.cpp yazedc.h
${CXX} ${CPPFLAGS} ${LDFLAGAS} cd-tool.cpp cdutils.cpp fileutils.cpp yazedc.cpp generic.cpp -o cd-tool
+main_dump: main_dump.cpp cdutils.cpp cdutils.h fileutils.cpp fileutils.h generic.cpp generic.h yazedc.cpp yazedc.h
+ ${CXX} ${CPPFLAGS} ${LDFLAGS} main_dump.cpp cdutils.cpp fileutils.cpp yazedc.cpp generic.cpp -o main_dump
+
reinsert: reinsert.cpp cdutils.cpp cdutils.h fileutils.cpp fileutils.h generic.cpp generic.h yazedc.cpp yazedc.h
${CXX} ${CPPFLAGS} ${LDFLAGS} reinsert.cpp cdutils.cpp fileutils.cpp yazedc.cpp generic.cpp -o reinsert
clean:
rm -f *.o ${TARGET} compil.c
+
+XenoCD1.sqr:
+ ./map2sqr < XenoCD1.map > XenoCD1.sqr
+
+XenoCD2.sqr:
+ ./map2sqr < XenoCD2.map > XenoCD2.sqr
diff --git a/Xenogears/main_dump.cpp b/Xenogears/main_dump.cpp
index 2f79a86..fa61db5 100644
--- a/Xenogears/main_dump.cpp
+++ b/Xenogears/main_dump.cpp
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <unistd.h>
#include "fileutils.h"
#include "cdutils.h"
#include "generic.h"