~jkaivo/freeonebook

freeonebook/Makefile -rw-r--r-- 609 bytes
f1795ce9 — Jakob Kaivo remove debug output 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CROSS=arm-linux-gnueabihf
DEPLIBS=MagickWand libpng16 zlib
PKG_CONFIG_PATH=./deps/lib/pkgconfig
CC=$(CROSS)-gcc
CFLAGS=-Wall -Wextra -I. $$(PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags MagickWand)
LDFLAGS=-lpthread $$(PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs-only-L $(DEPLIBS))
LDLIBS=$$(PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs-only-l $(DEPLIBS)) -lm

all: freeonebook

freeonebook: freeonebook.o gpio.o fb.o convert.o

freeonebook.o: freeonebook.c gpio.h fb.h

gpio.o: gpio.c gpio.h

fb.o: fb.c fb.h convert.h

convert.o: convert.c convert.h

clean:
	rm -f freeonebook *.o