-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 747 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cc = gcc
FILE = src/
OBJFILE = bin/
CFLAGS = -std=c99 -Wall -g -pedantic
EXE = run
all: $(EXE)
$(EXE): BIN OBJ main.o heap.o functions.o
gcc ./obj/main.o ./obj/heap.o ./obj/functions.o -lncurses -o $(OBJFILE)$(EXE)
BIN:
if [ ! -d "bin" ]; then mkdir bin; fi;
OBJ:
if [ ! -d "obj" ]; then mkdir obj; fi;
cppcheck:
cppcheck --enable=all --language=c --std=c99 --inconclusive --suppress=missingInclude src/*.c -i ./include
main.o: ./src/main.c
$(CC) -c $(CFLAGS) ./src/main.c -I./include -o ./obj/main.o
heap.o: ./src/heap.c
$(CC) -c $(CFLAGS) ./src/heap.c -I./include -o ./obj/heap.o
functions.o: ./src/functions.c
$(CC) -c $(CFLAGS) ./src/functions.c -I./include -o ./obj/functions.o
doxy: Doxyfile
doxygen
clean:
rm -rf bin obj