blob: a983640a8dde03b85b69e8876c4cf8fd8552280a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
CC = cc
CFLAGS = -I . -Wall -Wextra -Wpedantic -pedantic
C89FLAGS = -std=c89
TARGET = examples/simple
SOURCE = examples/simple.c
all: tests/tests $(TARGET)
$(TARGET): $(SOURCE) ls_vec.h
$(CC) -o $(TARGET) $(SOURCE) $(CFLAGS) $(C89FLAGS)
tests/tests: ls_vec.h tests/tests.c tests/ls_test.h
$(CC) -o $@ tests/tests.c -Itests -I.
clean:
rm -f $(TARGET)
rm -f tests/tests
.PHONY: clean all
|