diff options
Diffstat (limited to 'fb/Makefile')
-rw-r--r-- | fb/Makefile | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/fb/Makefile b/fb/Makefile index c7c218b..9613f53 100644 --- a/fb/Makefile +++ b/fb/Makefile @@ -2,12 +2,14 @@ VERSION := 0.1.1 prefix=/usr/ -bindir=$(prefix)/bin +mbindir=$(prefix)/bin +bindir=$(prefix)/usr/bin +libdir=$(prefix)/usr/lib CFLAGS=-g -O2 -Wall \ -DVERSION='"$(VERSION)"' -PROGS=progress fbresolution +PROGS=progress fbresolution fbmenu all: $(PROGS) @@ -17,13 +19,22 @@ check: 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) - install -s -m755 progress $(bindir) - install -m755 fbresolution $(bindir) + 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) |