# Note: Do not build *.c files into this directory. :)
VERSION=1.1.0

include ../Makefile.sets

all: converters.hh charsets.a

table2h: table2h.o
	$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
table2h.o: table2h.cc

converters.hh: everything
	./everything
charsets.mak: everything
	./everything

include charsets.mak

charsets.a: $(CSETOBJS)
	ar -rc $@ $^

clean:
	rm -f table2h.o table2h charsets.a *.o charsets.tmp
	for s in $(CSETOBJS);do for t in cc h;do rm -f `echo $$s|sed 's/.o$$/.'$$t/`;done;done

distclean: clean
	rm -f charsets.mak *.h *.hh

realclean: distclean
	rm -f *~
