18 lines
252 B
Makefile
18 lines
252 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -I../src/include -DDEBUG -g
|
|
LDFLAGS=-lm
|
|
SRC=test.c
|
|
OBJ=$(SRC:.c=.o)
|
|
|
|
OBJ+=../src/read_file.o ../src/distance.o ../src/brute_force.o
|
|
|
|
all: test
|
|
|
|
test: $(OBJ)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o test
|
|
|
|
.PHONY: all test clean
|