-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (22 loc) · 931 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
CC = gcc
FLAGS = -Wall -ggdb
all: examples
examples: list stack queue map set
list: examples/list/main.c src/list.h src/helpers.h
${CC} ${FLAGS} src/helpers.h examples/list/main.c -o examples/list/list
stack: examples/stack/main.c src/stack.h src/helpers.h
${CC} ${FLAGS} src/helpers.h examples/stack/main.c -o examples/stack/stack
queue: examples/queue/main.c src/queue.h src/helpers.h
${CC} ${FLAGS} src/helpers.h examples/queue/main.c -o examples/queue/queue
map: examples/map/main.c src/map.h src/helpers.h
${CC} ${FLAGS} src/helpers.h examples/map/main.c -o examples/map/map
set: examples/set/main.c src/set.h src/helpers.h
${CC} ${FLAGS} src/helpers.h examples/set/main.c -o examples/set/set
clean:
rm examples/list/list
rm examples/stack/stack
rm examples/queue/queue
rm examples/map/map
rm examples/set/set
documentation: examples/%/main.c src/list.h src/map.h src/helpers.h Doxyfile
doxygen Doxyfile