summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPixel <Pixel>2002-06-21 23:45:51 +0000
committerPixel <Pixel>2002-06-21 23:45:51 +0000
commitcdbb43ea328883261c6f71e6e44b16ae39173fa6 (patch)
tree81565694986eef4722a770f1e3a5e7977a359a00 /Makefile
parent026e1c60db7b6596a50f325f05fdd54d4a404127 (diff)
Still working...
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile33
1 files changed, 18 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 7a41281..6f57c0e 100755
--- a/Makefile
+++ b/Makefile
@@ -3,30 +3,33 @@
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -Werror
CXX=g++
-TARGET = lzss dlzss yazedc cd-tool dte-tool str-tool
+SUBDIRS = psxdev
+TARGET = lzss dlzss cd-tool str-tool
-all: ${TARGET}
+all: subdirs ${TARGET}
-lzss: lzss.cpp lzss.h generic.cpp generic.h fileutils.h fileutils.cpp
- ${CXX} ${CPPFLAGS} ${LDFLAGS} -DLZSS_MAIN lzss.cpp generic.cpp fileutils.cpp -o lzss
+subdirs:
+ for d in ${SUBDIRS} ; do (cd $$d ; make all) ; done
+
+lzss: lzss.o lzss.h generic.o generic.h fileutils.h fileutils.o lzss-main.o
+ ${CXX} ${LDFLAGS} -DLZSS_MAIN lzss.o generic.o fileutils.o lzss-main.o -o lzss
dlzss: lzss
ln -fs lzss dlzss
-yazedc: yazedc.cpp crctables crctable.out
- ${CXX} ${CPPFLAGS} ${LDFLAGS} yazedc.cpp -DMAIN -o yazedc
-
-cd-tool: cd-tool.cpp cdutils.cpp cdutils.h fileutils.cpp fileutils.h generic.cpp generic.h yazedc.cpp yazedc.h
- ${CXX} ${CPPFLAGS} ${LDFLAGAS} cd-tool.cpp cdutils.cpp fileutils.cpp yazedc.cpp generic.cpp -o cd-tool
+yazedc: yazedc.o crctables crctable.out yazedc-main.o
+ ${CXX} ${CPPFLAGS} ${LDFLAGS} yazedc.o yazedc-main.o -DMAIN -o yazedc
-dte-tool-asm: dteutils.cpp generic.h generic.cpp fileutils.cpp fileutils.h dte-asm.S
- ${CXX} ${CPPFLAGS} ${LDFLAGS} dteutils.cpp generic.cpp fileutils.cpp dte-asm.S -o dte-tool-asm -DUSEASM -DDTEMAIN
+cd-tool: cd-tool.o cdutils.o cdutils.h fileutils.o fileutils.h generic.o generic.h yazedc.o yazedc.h
+ ${CXX} ${oFLAGS} ${LDFLAGAS} cd-tool.o cdutils.o fileutils.o yazedc.o generic.o -o cd-tool
-dte-tool: dteutils.cpp generic.h generic.cpp fileutils.cpp fileutils.h
- ${CXX} ${CPPFLAGS} ${LDFLAGS} dteutils.cpp generic.cpp fileutils.cpp -o dte-tool -DDTEMAIN
+dte-tool: dteutils.o generic.h generic.o fileutils.o fileutils.h dtemain.o
+ ${CXX} ${oFLAGS} ${LDFLAGS} dteutils.o generic.o fileutils.o dtemain.o -o dte-tool
-str-tool: str-util.cpp generic.h generic.cpp fileutils.cpp fileutils.h cdutils.cpp cdutils.h yazedc.cpp yazedc.h
- ${CXX} ${CPPFLAGS} ${LDFLAGS} str-util.cpp generic.cpp fileutils.cpp cdutils.cpp yazedc.cpp -o str-tool -DSTR_MAIN
+str-tool: str-util.o generic.h generic.o fileutils.o fileutils.h cdutils.o cdutils.h yazedc.o yazedc.h
+ ${CXX} ${oFLAGS} ${LDFLAGS} str-util.o generic.o fileutils.o cdutils.o yazedc.o psxdev/bs.o psxdev/idctfst.o psxdev/jfdctint.o psxdev/vlc.o -o str-tool
clean:
rm -f *.o ${TARGET} compil.c
+ for d in ${SUBDIRS} ; do (cd $$d ; make clean) ; done
+