From a7738f4dc72c9445623cd6f5348d7a80d4e52690 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sun, 9 Oct 2022 17:57:05 -0400 Subject: initial commit, straight from apt-get source --- .pc/respect-dpkg-buildflags.patch/Makefile.common | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .pc/respect-dpkg-buildflags.patch/Makefile.common (limited to '.pc/respect-dpkg-buildflags.patch/Makefile.common') diff --git a/.pc/respect-dpkg-buildflags.patch/Makefile.common b/.pc/respect-dpkg-buildflags.patch/Makefile.common new file mode 100644 index 0000000..8d5c4ef --- /dev/null +++ b/.pc/respect-dpkg-buildflags.patch/Makefile.common @@ -0,0 +1,39 @@ +ifeq (,$(TOPDIR)) +$(error TOPDIR variable must be defined) +endif + +all: + +$(TOPDIR)/Makefile.config: + $(error Please run $(TOPDIR)/configure first) + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(MAKECMDGOALS),distclean) +ifneq ($(MAKECMDGOALS),tar) +-include $(TOPDIR)/Makefile.config +endif +endif +endif + +CC = gcc +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 +endif + +# -DGTK_DISABLE_DEPRECATED does not work yet +CFLAGS += -g -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED + +%.o: %.c + $(CC) $(CFLAGS) $(INCS) -c $< + +%.dep: %.c + $(CC) $(CFLAGS) $(INCS) -MM $< -o $@ + +.PHONY: all clean distclean install uninstall + +distclean: clean +install: all -- cgit