summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3ab214da5926c5e0f81ec15d82de5cfd1b3135a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC     = gcc
CFLAGS = -Wall -Iinclude/
OUTPUT = main
MAIN   = main.c
DEPS   = include/types.h include/board.h include/print.h include/piece.h
OBJ    = lib/board.o lib/print.o lib/piece.o

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

all: $(OBJ)
	$(CC) $(CFLAGS) -o $(OUTPUT)  $^ $(MAIN)

clean:
	rm -f $(OUTPUT) $(OBJ)
nihil fit ex nihilo