summaryrefslogtreecommitdiff
path: root/libhuff/Makefile
blob: 0016f91680da8d547542e4d8848745d054f51bc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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