aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7dc331dd76ec37a2c43725da84b5e66d6d81d6af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
tests/tests: queue.o tests/tests.c tests/ls_test.h
	$(CC) -o $@ queue.o tests/tests.c -Itests -I.

# Usually you wouldn't do this, but for tests we want this compiled with the
# most pedantic settings.
# Dont use this.
queue.o: queue.h
	$(CC) -c -x c -o $@ $^ -Wall -Wextra -Wpedantic -Werror -ansi \-std=c89 \
    	-DLS_QUEUE_IMPLEMENTATION \
    	-Wno-error=pragma-once-outside-header \
    	-Wno-pragma-once-outside-header

.PHONY: clean

clean:
	rm -f tests/tests
	rm -f queue.o