blob: 815eb9dc73009580281b3948f78422dba694ea80 (
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
|
#!/usr/bin/make -f
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -Werror -I../includes -DHAVE_ZLIB
CXX=g++
LIBS=-lz
LDFLAGS=${LIBS}
TARGET = main_dump VP-CD1.sqr decomp-slz unarc
all: ${TARGET}
main_dump: main_dump.o ../includes/cdutils.h ../includes/generic.h ../lib/lib.a ../generic/generic.a Makefile
${CXX} ${LDFLAGS} main_dump.o ../lib/lib.a ../generic/generic.a -o main_dump
decomp-slz: decomp-slz.o ../includes/generic.h ../includes/lzss.h Makefile
${CXX} ${LDFLAGS} decomp-slz.o ../lib/lib.a ../generic/generic.a -o decomp-slz
unarc: unarc.o ../includes/generic.h Makefile
${CXX} ${LDFLAGS} unarc.o ../generic/generic.a -o unarc
search-script: search-script.o ../includes/generic.h Makefile
${CXX} ${LDFLAGS} search-script.o ../generic/generic.a -o search-script
clean:
rm -f *.o ${TARGET}
VP-CD1.sqr: VP-CD1.map Makefile
./map2sqr < $< > $@
.map.sqr:
./map2sqr < $< > $@
redo: clean all
|