add tests

This commit is contained in:
2018-11-11 18:20:01 -03:00
parent 6ab7930b24
commit 1097902899
3 changed files with 104 additions and 2 deletions

15
test/Makefile Normal file
View File

@@ -0,0 +1,15 @@
CC=gcc
CFLAGS=-Wall -I../src/include -DDEBUG -g
SRC=test.c
OBJ=$(SRC:.c=.o)
OBJ+=../src/random.o ../src/bubble_sort.o ../src/timer.o
all: test
test: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
clean:
rm -f *.o test
.PHONY: all test clean