summaryrefslogtreecommitdiff
path: root/psxdev
diff options
context:
space:
mode:
Diffstat (limited to 'psxdev')
-rw-r--r--psxdev/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/psxdev/Makefile b/psxdev/Makefile
index 0ddfc4f..bca0c5a 100644
--- a/psxdev/Makefile
+++ b/psxdev/Makefile
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
-TARGETS=xadecode.o bs.o idctfst.o jfdctint.o vlc.o
+OBJECTS = xadecode.o bs.o idctfst.o jfdctint.o vlc.o
+TARGETS = psxdev.a
CC=gcc
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -I../includes
@@ -9,6 +10,10 @@ CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -I../includes
all: ${TARGETS}
+psxdev.a: ${OBJECTS}
+ ar -r psxdev.a ${OBJECTS}
+ ranlib psxdev.a
+
bstoppm: xadecode.o bs.o idctfst.o jfdtint.o vlc.o bstoppm.o
${CC} ${LDFLAGS} xadecode.o bs.o idcfst.o jfdtint.o vlc.o bstoppm.o -o bstoppm