-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
132 lines (105 loc) · 4.77 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
DRIVER_LIB = driver.a
DRIVER_DIR = driver
DRIVER_SRCS = $(wildcard $(DRIVER_DIR)/*.c)
DRIVER_OBJS = $(subst .c,.o,$(DRIVER_SRCS))
JPEG_LIB = jpeg.a
JPEG_DIR = tjpgd2
JPEG_SRCS = $(wildcard $(JPEG_DIR)/*.c)
JPEG_OBJS = $(subst .c,.o,$(JPEG_SRCS))
PNG_LIB = png.a
PNG_DIR = pngle
PNG_SRCS = $(wildcard $(PNG_DIR)/*.c)
PNG_OBJS = $(subst .c,.o,$(PNG_SRCS))
ARFLAG = crv
SRCS = demo.c draw.c rgb2color.c fontx.c tft_lib.c $(DRIVER_LIB) $(JPEG_LIB) $(PNG_LIB)
LIBS = $(DRIVER_LIB) $(JPEG_LIB) $(PNG_LIB)
$(DRIVER_LIB) : $(DRIVER_OBJS) $(DRIVER_SRCS)
$(AR) $(ARFLAG) $(DRIVER_LIB) $(DRIVER_OBJS)
@rm -f $(DRIVER_OBJS)
@echo "$(DRIVER_LIB) make success"
$(JPEG_LIB) : $(JPEG_OBJS) $(JPEG_SRCS)
$(AR) $(ARFLAG) $(JPEG_LIB) $(JPEG_OBJS)
@rm -f $(JPEG_OBJS)
@echo "$(JPEG_LIB) make success"
$(PNG_LIB) : $(PNG_OBJS) $(PNG_SRCS)
$(AR) $(ARFLAG) $(PNG_LIB) $(PNG_OBJS)
@rm -f $(PNG_OBJS)
@echo "$(PNG_LIB) make success"
ILI9225 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9320 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9325 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9327 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9341 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
cc -o jpegtest jpegtest.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o pngtest pngtest.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
ILI9342 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9481 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9486 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9488 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ILI9488-INVERT : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -DILI9488 -DINVERT
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -DILI9488 -DINVERT
cc -o rgb2color rgb2color.c
SPFD5408 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
R61505U : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
R61509V : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
S6D1121 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ST7775 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ST7781 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ST7783 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ST7793 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c
ST7796 : $(SRCS)
cc -o demo demo.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o draw draw.c fontx.c tft_lib.c $(LIBS) -lwiringPi -lm -lpthread -D$@
cc -o rgb2color rgb2color.c