16fe98d279
This patch prevents a "undefined symbol: imlib_image_draw_pixel" error by placing -lImlib2 after the *.o files during make. Patch to fix Ubuntu bug #995272. https://bugs.launchpad.net/ubuntu/+source/wmhdplop/+bug/995272 https://sources.debian.net/src/wmhdplop/0.9.9-5/debian/patches/ ldflags-to-ldadd.patch/
24 lines
797 B
Makefile
24 lines
797 B
Makefile
bin_PROGRAMS=wmhdplop
|
|
noinst_PROGRAMS=@GKHDPLOP@
|
|
EXTRA_PROGRAMS=gkhdplop.so
|
|
|
|
EXTRA_DIST=autogen.sh gkrellm_hdplop.c
|
|
|
|
IMLIB2_LIBS=@IMLIB2_LIBS@
|
|
IMLIB2_CFLAGS=@IMLIB2_CFLAGS@
|
|
|
|
wmhdplop_SOURCES = wmhdplop.c wmhdplop.h util.c util.h procstat.c procstat.h devnames.c devnames.h global.h dockapp_imlib2.c dockapp_imlib2.h
|
|
wmhdplop_LDADD=-lm $(IMLIB2_LIBS)
|
|
wmhdplop_CFLAGS=$(IMLIB2_CFLAGS)
|
|
# gtk cflags and gtk lib flags
|
|
GTK2_CFLAGS = @GTK2_CFLAGS@
|
|
GTK2_LIBS = @GTK2_LIBS@
|
|
|
|
LIBTOOLSUX_GKHDPLOP_SRC=wmhdplop.c util.c util.h procstat.c procstat.h devnames.c devnames.h global.h dockapp_imlib2.c dockapp_imlib2.h gkrellm_hdplop.c
|
|
|
|
gkhdplop_so_SOURCES=$(LIBTOOLSUX_GKHDPLOP_SRC)
|
|
gkhdplop_so_CFLAGS=-DGKRELLM -fPIC $(GTK2_CFLAGS) $(IMLIB2_CFLAGS)
|
|
gkhdplop_so_LDADD=-shared $(IMLIB2_LIBS) -lm
|
|
|
|
all: @GKHDPLOP@
|