blob: 04aaecb6a715888c6063251f5f99723e99912628 (
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
|
#!/usr/bin/make -f
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -Werror -Iincludes `sdl-config --cflags`
LDFLAGS=`sdl-config --libs`
CXX=g++
SUBDIRS = psxdev generic lib Xenogears VP MegamanX5
TARGET = lzss dlzss cd-tool str-player crypto-search bgrep dte-tool
all: subdirs ${TARGET}
subdirs:
for d in ${SUBDIRS} ; do make -C $$d || exit -1 ; done
lzss: includes/lzss.h includes/generic.h includes/fileutils.h lzss-main.o generic/generic.a lib/lib.a Makefile
${CXX} ${LDFLAGS} -DLZSS_MAIN lzss-main.o lib/lib.a generic/generic.a -o lzss
dlzss: lzss Makefile
ln -fs lzss dlzss
yazedc: yazedc-main.o lib/lib.a Makefile
${CXX} ${LDFLAGS} yazedc-main.o lib/lib.a -DMAIN -o yazedc
cd-tool: includes/cdutils.h includes/fileutils.h includes/generic.h includes/yazedc.h cd-tool.o Makefile
${CXX} ${LDFLAGAS} cd-tool.o lib/lib.a generic/generic.a -o cd-tool
dte-tool: includes/generic.h includes/fileutils.h includes/dte.h dtemain.o lib/lib.a generic/generic.a Makefile
${CXX} ${LDFLAGS} dtemain.o lib/lib.a generic/generic.a -o dte-tool
str-player: str-player.o includes/generic.h includes/fileutils.h includes/cdutils.h includes/yazedc.h lib/lib.a generic/generic.a psxdev/psxdev.a Makefile
${CXX} ${LDFLAGS} str-player.o psxdev/psxdev.a lib/lib.a generic/generic.a -o str-player
crypto-search: crypto-search.o includes/generic.h includes/fileutils.h lib/lib.a generic/generic.a Makefile
${CXX} ${LDFLAGS} crypto-search.o lib/lib.a generic/generic.a -o crypto-search
bgrep: bgrep.o includes/generic.h includes/fileutils.h generic/generic.a Makefile
${CXX} ${LDFLAGS} bgrep.o generic/generic.a -o bgrep
clean:
for d in ${SUBDIRS} ; do make -C $$d clean || exit -1 ; done
rm -f *.o ${TARGET} compil.c
|