summaryrefslogtreecommitdiff
path: root/Xenogears/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Xenogears/Makefile')
-rwxr-xr-xXenogears/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Xenogears/Makefile b/Xenogears/Makefile
index 65a1121..4fec754 100755
--- a/Xenogears/Makefile
+++ b/Xenogears/Makefile
@@ -2,8 +2,9 @@
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -I../includes
CXX=g++
+CC=gcc
-TARGET = reinsert main_dump Decrypt script-comp script-dec XenoCD1.sqr XenoCD2.sqr
+TARGET = reinsert main_dump Decrypt script-comp script-dec XenoCD1.sqr XenoCD2.sqr compil compil-2
all: ${TARGET}
@@ -22,6 +23,18 @@ script-comp: script-comp.o ../includes/fileutils.h ../includes/generic.h ../incl
script-dec: script-dec.o ../includes/fileutils.h ../includes/generic.h ../includes/lzss.h ../lib/lib.a ../generic/generic.a Makefile
${CXX} ${LDFLAGS} script-dec.o ../lib/lib.a ../generic/generic.a -o script-dec
+compil: compil.o
+ ${CC} ${LDFLAGS} compil.o -o compil
+
+compil-2: compil-2.o
+ ${CC} ${LDFLAGS} compil-2.o -o compil-2
+
+compil.c: compil.lex
+ lex -ocompil.c compil.lex
+
+compil-2.c: compil-2.lex
+ lex -ocompil-2.c compil-2.lex
+
clean:
rm -f *.o ${TARGET} compil.c