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)