blob: e27a9c4ab679b86123b78ba4ca83e6f128bf6f2b (
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
44
45
|
VERSION := 0.1.1
prefix=/usr/
mbindir=$(prefix)/bin
bindir=$(prefix)/usr/bin
libdir=$(prefix)/usr/lib
GTK_CFLAGS = $(shell pkg-config gtk+-2.0 --cflags)
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 $(GTK_CFLAGS) -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -O2 -Wall -lgtk-x11-2.0 -o xmenu fbmenu.c;
fbmenu: fbmenu.c
gcc $(GTK_CFLAGS) -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -O2 -Wall -lgtk-linux-fb-2.0 -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 fbmenu $(bindir)
# install -m755 libgdk-linux-fb-2.0.so.0.400.14 $(libdir)
# install -m755 libgtk-linux-fb-2.0.so.0.400.14 $(libdir)
clean:
rm -f *~ *.o *.bak core $(PROGS)
realclean: clean
rm -f $(PROGS)
|