summaryrefslogtreecommitdiff
path: root/libhuff/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libhuff/Makefile')
-rw-r--r--libhuff/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/libhuff/Makefile b/libhuff/Makefile
new file mode 100644
index 0000000..0016f91
--- /dev/null
+++ b/libhuff/Makefile
@@ -0,0 +1,23 @@
+# Makefile for libhuff
+
+include ../Makefile.cfg
+
+#CC = mipsel-unknown-elf-gcc
+#CFLAGS = -I../libpsx/include/ -G0 -O0 -fno-builtin -mno-gpopt -nostdlib -msoft-float -g -Wall
+
+all: libhuff.a
+
+huff.o: huff.c
+ $(CC) $(CFLAGS) -c huff.c
+
+libhuff.a: huff.o
+ rm -f libhuff.a
+ $(AR) r libhuff.a huff.o
+ $(RANLIB) libhuff.a
+
+install: all
+ cp libhuff.a $(TOOLCHAIN_PREFIX)/lib
+ cp huff.h $(TOOLCHAIN_PREFIX)/include
+
+clean:
+ rm -f *.o *.a \ No newline at end of file