CC=gcc
CFLAGS=-O2 -Wall

all: eater

.c:
	$(CC) $(CFLAGS) $< -o $@


clean:
	rm -f eater

eater: eater.c

.PHONY: tarball
NAMEVER=eater-0.1
TARBALL= $(NAMEVER).tar.gz
TARDIR= $(NAMEVER)
tarball: $(TARBALL)

$(TARBALL): Makefile eater.c README
	ln -fns . $(TARDIR)
	tar czhf $(TARBALL) \
		$(TARDIR)/Makefile \
		$(TARDIR)/eater.c \
		$(TARDIR)/README


