blob: 9613f53cc99c3bd1050a078460e9f0e8434b1176 (
plain)
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
|
VERSION := 0.1.1
prefix=/usr/
mbindir=$(prefix)/bin
bindir=$(prefix)/usr/bin
libdir=$(prefix)/usr/lib
CFLAGS=-g -O2 -Wall \
-DVERSION='"$(VERSION)"'
PROGS=progress fbresolution fbmenu
all: $(PROGS)
check:
/bin/true
fbresolution: fbresolution.c
$(CC) $(CFLAGS) -o $@ fbresolution.c
xmenu: fbmenu.c
gcc -I/usr/include/gtk-2.0/ -I/usr/lib/gtk-2.0/include/ -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/atk-1.0 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -O2 -Wall -lgtk-x11-2.0 -o xmenu fbmenu.c;
fbmenu: fbmenu.c
gcc -I/usr/include/gtk-2.0/ -I/usr/lib/gtk-2.0/include/ -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/freetype2 -I/usr/include/freetype2/freetype2/config -I/usr/include/atk-1.0 -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -O2 -Wall libgtk-linux-fb-2.0.so -o fbmenu fbmenu.c;
progress: progress.c
$(CC) $(CFLAGS) $(FSFLAGS) -o $@ progress.c
install:
mkdir -p $(bindir) $(mbindir) $(libdir)
install -s -m755 progress $(mbindir)
install -m755 fbresolution $(mbindir)
install -m755 libgdk-linux-fb-2.0.so.0.400.14 $(libdir)
install -m755 fbmenu $(bindir)
install -m755 libgtk-linux-fb-2.0.so.0.400.14 $(libdir)
clean:
rm -f *~ *.o *.bak core $(PROGS)
realclean: clean
rm -f $(PROGS)
|