summaryrefslogtreecommitdiff
path: root/Xenogears/Makefile
blob: 65a1121b29134933a23edbdb177c165c9d5fba57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -I../includes
CXX=g++

TARGET = reinsert main_dump Decrypt script-comp script-dec XenoCD1.sqr XenoCD2.sqr

all: ${TARGET}

main_dump: main_dump.o ../includes/cdutils.h ../includes/fileutils.h ../includes/generic.h ../includes/yazedc.h ../lib/lib.a ../generic/generic.a Makefile
	${CXX} ${LDFLAGS} main_dump.o ../lib/lib.a ../generic/generic.a -o main_dump

reinsert: reinsert.o ../includes/cdutils.h ../includes/fileutils.h ../includes/generic.h ../includes/yazedc.h ../lib/lib.a ../generic/generic.a Makefile
	${CXX} ${LDFLAGS} reinsert.o ../lib/lib.a ../generic/generic.a -o reinsert

Decrypt: Decrypt.o ../includes/fileutils.h ../includes/generic.h ../generic/generic.a Makefile
	${CXX} ${LDFLAGS} Decrypt.o ../generic/generic.a -o Decrypt

script-comp: script-comp.o ../includes/fileutils.h ../includes/generic.h ../includes/lzss.h ../lib/lib.a ../generic/generic.a Makefile
	${CXX} ${LDFLAGS} script-comp.o ../lib/lib.a ../generic/generic.a -o script-comp

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

clean:
	rm -f *.o ${TARGET} compil.c

XenoCD1.sqr:
	./map2sqr < XenoCD1.map > XenoCD1.sqr

XenoCD2.sqr:
	./map2sqr < XenoCD2.map > XenoCD2.sqr