%.o: %.c bytea_codes.h
	gcc -c -g $<

test: encoders.o test.o bytea_codes.h
	gcc -g -o test test.o encoders.o

bytea_codes.h:	make_bytea_codes
	./make_bytea_codes > bytea_codes.h

make_bytea_codes: make_bytea_codes.c
	gcc -o make_bytea_codes make_bytea_codes.c

clean:
	rm *.o bytea_codes.h

