-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (31 loc) · 1.4 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
CFLAGS = -g -Wall
CFLAGS += `pkg-config --cflags glib-2.0 gio-unix-2.0`
LDFLAGS +=`pkg-config --libs glib-2.0 gio-unix-2.0`
labwc-menu-gnome3: labwc-menu-gnome3.o
labwc-menu-gnome3: CFLAGS += -DGMENU_I_KNOW_THIS_IS_UNSTABLE
labwc-menu-gnome3: CFLAGS += `pkg-config --cflags libgnome-menu-3.0`
labwc-menu-gnome3: LDFLAGS += `pkg-config --libs libgnome-menu-3.0`
labwc-menu-gnome3.c:
cp labwc-menu.c labwc-menu-gnome3.c
labwc-menu-cinnamon: labwc-menu-cinnamon.o
labwc-menu-cinnamon: CFLAGS += -DGMENU_I_KNOW_THIS_IS_UNSTABLE
labwc-menu-cinnamon: CFLAGS += `pkg-config --cflags libcinnamon-menu-3.0`
labwc-menu-cinnamon: LDFLAGS += `pkg-config --libs libcinnamon-menu-3.0`
labwc-menu-cinnamon.c:
sed 's/gnome-menus-3.0/cinnamon-menus-3.0/' labwc-menu.c > labwc-menu-cinnamon.c
sed -i 's/GDesktopAppInfo/GMenuDesktopAppInfo/' labwc-menu-cinnamon.c
labwc-menu-mate: labwc-menu-mate.o
labwc-menu-mate: CFLAGS += -DMATEMENU_I_KNOW_THIS_IS_UNSTABLE
labwc-menu-mate: CFLAGS += `pkg-config --cflags libmate-menu`
labwc-menu-mate: LDFLAGS += `pkg-config --libs libmate-menu`
labwc-menu-mate.c:
sed 's/gnome-menus-3.0/mate-menus/; s/applications.menu/mate-&/' labwc-menu.c > labwc-menu-mate.c
sed -i 's/gmenu/matemenu/g; s/GMenu/MateMenu/g; s/GMENU/MATEMENU/g' labwc-menu-mate.c
clean:
rm -f *.o \
labwc-menu-mate \
labwc-menu-gnome3 \
labwc-menu-cinnamon \
labwc-menu-mate.c \
labwc-menu-gnome3.c \
labwc-menu-cinnamon.c