From 4767a3eb78e2e8286160000c203d1b91357614f7 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 10 Oct 2022 10:34:56 -0400 Subject: original 0.6 source code from debian's orig.tar.gz. The original app is from sourceforge: https://fbxkb.sourceforge.net/index.html --- Makefile.common | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'Makefile.common') diff --git a/Makefile.common b/Makefile.common index 1094938..8d5c4ef 100644 --- a/Makefile.common +++ b/Makefile.common @@ -15,15 +15,10 @@ endif endif endif -ifdef DESTDIR -PREFIX := $(DESTDIR)/$(PREFIX) -endif - CC = gcc -PKG_CONFIG ?= pkg-config -LIBS = -lX11 $(shell $(PKG_CONFIG) --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu -INCS = $(shell $(PKG_CONFIG) --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -CFLAGS ?= -O2 # overwriten by command line or env. variable +LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu +INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) +CFLAGS = -O2 # overwriten by command line or env. variable CFLAGS += -Wall # always nice to have ifneq (,$(DEVEL)) CFLAGS := -g -Wall @@ -33,10 +28,10 @@ endif CFLAGS += -g -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(INCS) -c $< + $(CC) $(CFLAGS) $(INCS) -c $< %.dep: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(INCS) -MM $< -o $@ + $(CC) $(CFLAGS) $(INCS) -MM $< -o $@ .PHONY: all clean distclean install uninstall -- cgit