aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 61e8f9e1d8127a54de6bd8f083a85cd503523e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
APP=km-test
CFLAGS=-W -Wall -Wextra -pedantic -std=c11 -O2
OBJS=km-set.o km-draw.o km-load.o km-find.o km-rand-src.o km-solve.o main.o
LIBS=-lm

.PHONY=all clean
all: $(APP)

$(APP): $(OBJS)
	$(CC) -o $(APP) $(OBJS) $(LIBS)

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

clean:
	$(RM) $(OBJS)