-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (43 loc) · 1.31 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
all:
gcc -Wfatal-errors \
-mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a8 -fomit-frame-pointer -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize \
-export-dynamic \
-I/usr/include/gtk-2.0 \
-I/usr/lib/gtk-2.0/include \
-I/usr/include/atk-1.0 \
-I/usr/include/cairo \
-I/usr/include/pango-1.0 \
-I/usr/include/glib-2.0 \
-I/usr/lib/glib-2.0/include \
-I/usr/include/freetype2 \
-I/usr/include/libpng12 \
-I/usr/include/libglade-2.0 \
-L/usr/lib \
-Xlinker -rpath -Xlinker /usr/lib \
-I. \
-lm -lpthread \
fb-startup.c \
-Xlinker -L/usr/lib -Xlinker -l:libgtk-x11-2.0.so.0 -l:libatk-1.0.so.0 \
-l:libgdk_pixbuf-2.0.so.0 -l:libpango-1.0.so.0 -l:libcairo.so.2 \
-l:libgobject-2.0.so.0 -l:libgmodule-2.0.so.0 -l:libdl.so \
-l:libglib-2.0.so.0 -l:libglade-2.0.so
install:
- mkdir /usr/share/fb-startup
cp a.out /usr/bin/fb-startup
cp fb-startup.glade /usr/share/fb-startup/fb-startup.glade
cp ./images/*.png /usr/share/fb-startup/
install_audio:
opkg install ffmpeg
cp ./config/ffserver.conf /etc/
cp ./config/asound.state /etc/
cp ./config/startx.sh /etc/init.d/
cp ./config/interfaces /etc/network/
alsactl restore
- killall ffserver
ffserver
@echo "Your IP:"
@echo "`ifconfig | grep inet`"
@echo "Usage:"
@echo " ffmpeg -f alsa -ac 2 -ar 44100 -ab 128k -i hw:0,0 http://127.0.0.1:8080/feed1.ffm"
clean:
rm -f a.out