1
|
1 #
|
|
2 # Linux Frame Buffer Device Configuration
|
|
3 #
|
|
4
|
3358
|
5 CFLAGS = -Wall -O2 -I.
|
1
|
6 BISON = bison -d
|
|
7 FLEX = flex
|
|
8 INSTALL = install
|
|
9 RM = rm -f
|
|
10
|
|
11 All: fbset
|
|
12
|
|
13
|
|
14 fbset: fbset.o modes.tab.o lex.yy.o
|
|
15
|
|
16 fbset.o: fbset.c fbset.h fb.h
|
|
17 modes.tab.o: modes.tab.c fbset.h fb.h
|
|
18 lex.yy.o: lex.yy.c fbset.h modes.tab.h
|
|
19
|
|
20 lex.yy.c: modes.l
|
|
21 $(FLEX) modes.l
|
|
22
|
|
23 modes.tab.c: modes.y
|
|
24 $(BISON) modes.y
|
|
25
|
|
26 install: fbset
|
|
27 if [ -f /sbin/fbset ]; then rm /sbin/fbset; fi
|
|
28 $(INSTALL) fbset /usr/sbin
|
|
29 $(INSTALL) fbset.8 /usr/man/man8
|
|
30 $(INSTALL) fb.modes.5 /usr/man/man5
|
|
31 if [ ! -c /dev/fb0 ]; then mknod /dev/fb0 c 29 0; fi
|
|
32 if [ ! -c /dev/fb1 ]; then mknod /dev/fb1 c 29 32; fi
|
|
33 if [ ! -c /dev/fb2 ]; then mknod /dev/fb2 c 29 64; fi
|
|
34 if [ ! -c /dev/fb3 ]; then mknod /dev/fb3 c 29 96; fi
|
|
35 if [ ! -c /dev/fb4 ]; then mknod /dev/fb4 c 29 128; fi
|
|
36 if [ ! -c /dev/fb5 ]; then mknod /dev/fb5 c 29 160; fi
|
|
37 if [ ! -c /dev/fb6 ]; then mknod /dev/fb6 c 29 192; fi
|
|
38 if [ ! -c /dev/fb7 ]; then mknod /dev/fb7 c 29 224; fi
|
|
39
|
|
40 clean:
|
|
41 $(RM) *.o fbset lex.yy.c modes.tab.c modes.tab.h
|