-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (19 loc) · 952 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
obj-m += ft9201.o
CC=gcc -I/usr/include/ImageMagick-6 -I/usr/include/x86_64-linux-gnu/ImageMagick-6
util_objs = util_main.o
LIBS = -L/usr/lib/x86_64-linux-gnu -lMagickWand-6.Q16
PWD:= $(CURDIR)
incs ="-I/usr/include/ImageMagick-6 -I/usr/include/x86_64-linux-gnu/ImageMagick-6"
all: build ft9201_util ft9201_util_new
ft9201_util: util_main.o
gcc -I/usr/include/ImageMagick-6 -I/usr/include/x86_64-linux-gnu/ImageMagick-6 util_main.c -o ./ft9201_util -L/usr/lib/x86_64-linux-gnu -lMagickWand-6.Q16
ft9201_util_clean:
rm -Rf util_main.o $(util_objs) *.ko *.o *.mod.o ft9201_util fingprint
ft9201_util_new: fingprint.o lodepng.o
gcc -o fingprint fingprint.c lodepng.c -ansi -pedantic -Wall -Wextra -O3
build:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
install: build
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install
clean: ft9201_util_clean
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean