summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1e63a53410ad83f5980cf2e209dbccac9a1b0c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
CC      = gcc
CFLAGS  = -Wall -W -Wextra -std=c99 -g
NAME    = solver

$(NAME): .solver.o .main.o
	$(CC) -o $@ $^ $(LDFLAGS)

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

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