CC = gcc
CFLAGS = -Wall -Wextra -Werror -pedantic -std=c11 -D_POSIX_C_SOURCE=200809L
DTOB_DIR = ../dtob

INCLUDES = -I$(DTOB_DIR)/lib -I$(DTOB_DIR)/src -I.
LDFLAGS = -L$(DTOB_DIR) -ldtob -lm

TARGET = dif

.PHONY: all clean

all: $(TARGET)

$(TARGET): dif.c dif.h
	$(CC) $(CFLAGS) $(INCLUDES) -o $(TARGET) dif.c $(LDFLAGS)

clean:
	rm -f $(TARGET)
