-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (18 loc) · 721 Bytes
/
makefile
File metadata and controls
22 lines (18 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Basic parameters
CC = gcc
CFLAGS = -std=c99 -Wall -Wextra -pedantic -Wformat-overflow=0 -O3
OBJS = test.o
DEPS = CLM_LIBS.h
###############################################################################
# #
# make : to compile the code, update docs, run the tests, clean the folder. #
# #
###############################################################################
%.o: %.c $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $<
test: $(OBJS)
$(CC) $(CFLAGS) $^ -o $@
python3 UpdateDocs.py
valgrind --leak-check=full ./test
/bin/rm -rf *.o *~
/bin/rm -rf test