CC=gcc
CFLAGS=-g -Wall -Ideps -I/usr/include/SDL2
LDFLAGS=-lSDL2 -lSDL2_image

all: re

recenteditor_data.o: recenteditor_data.c recenteditor_data.h

recenteditor.o: recenteditor.c recenteditor_data.h

sha3.o: sha3/sha3.c sha3/sha3.h
	$(CC) $(CFLAGS) -Isha3 -c -o sha3.o sha3/sha3.c

re: recenteditor.o recenteditor_data.o sha3.o
	$(CC) $(LDFLAGS) -o re recenteditor.o recenteditor_data.o sha3.o

clean:
	rm -f recenteditor.o recenteditor_data.o sha3.o re