aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
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