summaryrefslogtreecommitdiff
path: root/libhuff/Makefile
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 10:32:23 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-01-31 10:32:23 +0100
commit7c24e9a9b02b04dcaf9507acb94091ea70a2c02d (patch)
treec28d0748652ad4b4222309e46e6cfc82c0906220 /libhuff/Makefile
parenta2b7b6bb1cc2f4a3258b7b2dbc92399d151f864d (diff)
downloadpsxsdk-7c24e9a9b02b04dcaf9507acb94091ea70a2c02d.tar.gz
Imported pristine psxsdk-20190410 from official repo
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