6 # comment to get the old, Xpm-only, version
9 # If you want to use gdk-pixbuf-2.0, pass GDKPIXBUF2=1 to make command
11 PIXBUF_CFG
= pkg-config gdk-pixbuf-xlib-2.0
12 PIXBUF_DEF
= -DWITH_GDKPIXBUF
13 PIXBUF_INC
:= $(shell $(PIXBUF_CFG
) --cflags)
14 PIXBUF_LIB
:= -rdynamic
-L
$(shell $(PIXBUF_CFG
) --variable
=prefix)/lib
-lgdk_pixbuf_xlib-2.0
-lgdk_pixbuf-2.0
-lgobject-2.0
19 CPPFLAGS
= -MMD
-ansi
-pedantic
-Wall
20 INCDIRS
= $(PIXBUF_INC
)
21 DEFINES
= -DETCDIR
='"$(ETCDIR)"' $(PIXBUF_DEF
)
23 LIBDIRS
= $(PIXBUF_LIB
)
24 LDLIBS
= -ldockapp
-lXpm
-lXext
-lX11
-lm
27 MAN1DIR
= $(MANDIR
)/man1
30 wmmenu.c options.c error.c menu.c utils.c pixmaps.c \
31 xobjects.c buttonbar.c events.c
33 OBJS1
= $(SRCS1
:.c
=.o
)
44 $(CC
) $(INCDIRS
) $(DEFINES
) $(CPPFLAGS
) $(CFLAGS
) -c
$<
47 $(CC
) $(LDFLAGS
) -o
$@
$(OBJS1
) $(LIBDIRS
) $(LDLIBS
)
49 install : $(PRGS
) $(MAN1
)
50 $(MKDIRHIER
) $(BINDIR
)
51 $(INSTBIN
) $(PRGS
) $(BINDIR
)
52 $(MKDIRHIER
) $(MAN1DIR
)
53 $(INSTMAN
) $(MAN1
) $(MAN1DIR
)
56 $(RM
) *.o
*.d core
tags $(PRGS
)
58 # dependencies -- do not change lines below