blob: 3b839c4d87c29bf40f65c690e1d0cf3fef4ebc22 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/usr/bin/make -f
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -I../includes -DHAVE_ZLIB `baltisot-config --cflags`
CXX=g++
CC=gcc
LEX=flex -l
LIBS=-lz
#-lefence
LDFLAGS=${LIBS} `baltisot-config --libs`
#`pkg-config --libs glib-2.0`
TARGET = reinsert main_dump Decrypt script-comp script-dec XenoCD1.sqr XenoCD2.sqr compil compil-2
all: ${TARGET}
main_dump: main_dump.o ../includes/cdutils.h ../includes/yazedc.h ../lib/lib.a Makefile
${CXX} main_dump.o ../lib/lib.a -o main_dump ${LDFLAGS}
reinsert: reinsert.o ../includes/cdutils.h ../includes/yazedc.h ../lib/lib.a Makefile
${CXX} ${LDFLAGS} reinsert.o ../lib/lib.a -o reinsert
Decrypt: Decrypt.o Makefile
${CXX} ${LDFLAGS} Decrypt.o -o Decrypt
script-comp: script-comp.o ../includes/lzss.h ../lib/lib.a Makefile
${CXX} ${LDFLAGS} script-comp.o ../lib/lib.a -o script-comp
script-dec: script-dec.o ../includes/lzss.h ../lib/lib.a Makefile
${CXX} ${LDFLAGS} script-dec.o ../lib/lib.a -o script-dec
compil: compil.o
${CC} compil.o -o compil
compil-2: compil-2.o
${CC} 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
XenoCD1.sqr:
./map2sqr < XenoCD1.map > XenoCD1.sqr
XenoCD2.sqr:
./map2sqr < XenoCD2.map > XenoCD2.sqr
|