aboutsummaryrefslogtreecommitdiff
path: root/.pc/fix-for-dh.patch/Makefile.common
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-10-09 17:57:05 -0400
committerB. Stack <bgstack15@gmail.com>2022-10-09 17:57:05 -0400
commita7738f4dc72c9445623cd6f5348d7a80d4e52690 (patch)
treeb336daf9b226783c39e6e985410cecf46484de3d /.pc/fix-for-dh.patch/Makefile.common
downloadfbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.gz
fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.tar.bz2
fbxkb-a7738f4dc72c9445623cd6f5348d7a80d4e52690.zip
initial commit, straight from apt-get source
Diffstat (limited to '.pc/fix-for-dh.patch/Makefile.common')
-rw-r--r--.pc/fix-for-dh.patch/Makefile.common39
1 files changed, 39 insertions, 0 deletions
diff --git a/.pc/fix-for-dh.patch/Makefile.common b/.pc/fix-for-dh.patch/Makefile.common
new file mode 100644
index 0000000..52482c9
--- /dev/null
+++ b/.pc/fix-for-dh.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) $(CPPFLAGS) $(CFLAGS) $(INCS) -c $<
+
+%.dep: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(INCS) -MM $< -o $@
+
+.PHONY: all clean distclean install uninstall
+
+distclean: clean
+install: all
bgstack15