CC = gcc
CFLAGS = -Wall -g -ansi -pedantic -lc
VERSION = 0.1
SRCFILES = te.c trade.c trade.h evolution.c \
	evolution.h output.c output.h bot.h bot.c
OBJMODULES = trade.o evolution.o output.o bot.o
FILES = $(SRCFILES) Makefile

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

te: te.c $(OBJMODULES)
	$(CC) $(CFLAGS) $^ -o $@

clean:
	rm -f *.o *.tar.xz

dist:
	tar -cJf te-$(VERSION).tar.xz $(FILES)
