CFLAGS=	-I. -g -D_BSD_MBSTATE_T_=u_int
CC=	cc

OBJS=	big5.o frune.o isctype.o lconv.o\
	localeconv.o mbrune.o multibyte.o rune.o runenone.o\
	runetable.o setlocale.o sjis.o utf2.o iso2022.o euctw.o \
	wcscat.o wcschr.o wcscmp.o wcscpy.o wcslen.o

rune.a: $(OBJS)
	ar cTq rune.a `lorder $(OBJS)`

test:	test.o rune.a
	$(CC) -o test test.o multibyte.o rune.a

clean:
	/bin/rm -f *.o test rune.a
