You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
464 B

all: test
test: testLinkedList
./testLinkedList
testLinkedList: build/linkedList.o build/testLinkedList.o
gcc -o $@ $^
build/linkedList.o: src/linkedList.c src/linkedList.h | build
gcc -Wall -c src/linkedList.c -o build/linkedList.o
build/testLinkedList.o: test/testLinkedList.c src/linkedList.h | build
gcc -Wall -Isrc/ -c test/testLinkedList.c -o build/testLinkedList.o
build:
mkdir build
clean:
rm -rf testLinkedList build
.PHONY: all test clean