ed2ad4c50d
A dockapp for Window Maker that provides a pop-up menu of icons that launch applications, like in AfterStep. The program can be run more than once at the same time, which allows many different menus, each one described in a separate file.
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/04/01 15:17:53 wilfried Exp $
|
|
--- Makefile.orig Sat Dec 30 23:13:43 2000
|
|
+++ Makefile Sun Apr 1 17:00:33 2001
|
|
@@ -1,26 +1,22 @@
|
|
-prefix = /usr/local
|
|
+prefix = ${PREFIX}
|
|
BINDIR = $(prefix)/bin
|
|
-ETCDIR = $(prefix)/etc
|
|
+ETCDIR = $(prefix)/share/wmmenu
|
|
|
|
# comment out to get the old, Xpm-only, version
|
|
-GDKPIXBUF = 1
|
|
|
|
-XROOT = /usr/X11R6
|
|
-DAROOT = /usr/local
|
|
+XROOT = ${X11BASE}
|
|
+DAROOT = ${LOCALBASE}
|
|
|
|
# If you want to use gdk-pixbuf, pass GDKPIXBUF=1 to make command
|
|
-ifdef GDKPIXBUF
|
|
+.if defined(GDKPIXBUF)
|
|
PIXBUF_DEF = -DWITH_GDKPIXBUF
|
|
-PIXBUF_INC := $(shell gdk-pixbuf-config --cflags)
|
|
-PIXBUF_LIB := -rdynamic -L$(shell gdk-pixbuf-config --prefix)/lib -lgdk_pixbuf_xlib
|
|
-endif
|
|
-
|
|
-CC = gcc #-g
|
|
-CFLAGS = -pipe $(CPPFLAGS) -O2
|
|
-CPPFLAGS = -MMD -ansi -pedantic -Wall $(INCDIRS) $(DEFINES)
|
|
+PIXBUF_INC != gdk-pixbuf-config --cflags
|
|
+PIXBUF_LIB = -lgdk_pixbuf_xlib -lgdk -lgmodule -lglib -lintl -ltiff -lpng -ljpeg -lz
|
|
+.endif
|
|
+
|
|
+CFLAGS += $(INCDIRS) $(DEFINES)
|
|
INCDIRS = -I$(DAROOT)/include -I$(XROOT)/include $(PIXBUF_INC)
|
|
DEFINES = -DETCDIR='"$(ETCDIR)"' $(PIXBUF_DEF)
|
|
-LDFLAGS = -s
|
|
LIBDIRS = -L$(DAROOT)/lib -L$(XROOT)/lib $(PIXBUF_LIB)
|
|
LDLIBS = -ldockapp -lXpm -lXext -lX11 -lm
|
|
|
|
@@ -49,4 +45,3 @@ clean :
|
|
$(RM) *.o *.d core tags $(PRGS)
|
|
|
|
# dependencies -- do not change lines below
|
|
--include *.d
|