aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-10 10:27:32 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-10 10:29:47 -0400
commitd5c3cd287aed5684cd60f90eb88e19403079887e (patch)
treecc7d5f7c8350a15fd55f349304412629c04169ef /Makefile.common
parentreadd all images (diff)
downloadfbxkb-d5c3cd287aed5684cd60f90eb88e19403079887e.tar.gz
fbxkb-d5c3cd287aed5684cd60f90eb88e19403079887e.tar.bz2
fbxkb-d5c3cd287aed5684cd60f90eb88e19403079887e.zip
restore to orig tgz for dpkg-build prep
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common15
1 files changed, 5 insertions, 10 deletions
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
bgstack15