-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (24 loc) · 742 Bytes
/
makefile
File metadata and controls
37 lines (24 loc) · 742 Bytes
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
35
36
QRCodeStructToRaw = $(wildcard lib/QRCodeStructToRaw/*.c)
binaryConverter = $(wildcard lib/binaryConverter/*.c)
reedSolomon = $(wildcard lib/reedSolomon/*.c)
rawToQrCodeStruct = $(wildcard lib/rawToQrCodeStruct/*.c)
drawQr = $(wildcard lib/drawQr/*.c)
libs = $(QRCodeStructToRaw) $(binaryConverter) $(reedSolomon) $(rawToQrCodeStruct) $(drawQr)
main_write = src/write.c
main_read = src/read.c
test = $(wildcard tests/*.c)
FLAGS = -g -Wall
.PHONY: compile
compile: $(main_write) $(main_read) $(libs)
gcc $(FLAGS) $(libs) $(main_write) -o write
gcc $(FLAGS) $(libs) $(main_read) -o read
.PHONY: test
test: $(test) $(libs)
gcc $(FLAGS) $^
.PHONY: clean
clean:
rm -f read
rm -f write
rm -f *.out
rm -f *.exe
rm -f output.pbm