summaryrefslogtreecommitdiff
path: root/VP/Makefile
blob: 13a540e5247411ed1d1165726b7fedc6f65896eb (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
#!/usr/bin/make -f

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

TARGET = main_dump VP-CD1.sqr decomp-slz unarc search-script

all: ${TARGET}

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

decomp-slz: decomp-slz.o ../fileutils.o ../fileutils.h ../generic.o ../generic.h ../lzss.o ../lzss.h Makefile
	${CXX} ${LDFLAGS} decomp-slz.o ../fileutils.o ../generic.o ../lzss.o -o decomp-slz

unarc: unarc.o ../fileutils.o ../fileutils.h ../generic.o ../generic.h Makefile
	${CXX} ${LDFLAGS} unarc.o ../fileutils.o ../generic.o -o unarc

search-script: search-script.o ../fileutils.o ../fileutils.h ../generic.o ../generic.h Makefile
	${CXX} ${LDFLAGS} search-script.o ../fileutils.o ../generic.o -o search-script

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

VP-CD1.sqr: VP-CD1.map Makefile
	./map2sqr < $< > $@

.map.sqr:
	./map2sqr < $< > $@

redo: clean all