# Makefile for a gkrellm plugin
# Copyright (C) 2001 paul cannon <paul@cannon.cs.usu.edu>
#
# Distributed under the GNU Public License- see COPYING
# for details.
#
# You can modify this makefile for about any gkrellm plugin that
# you're writing; just change the TARGET= line below.
TARGET = gkmouse
# for aiding packaging
DESTDIR =
# This should point to your gkrellm headers
GKRELLM_HDRS := ${X11BASE}/include/gkrellm
GTKFLAGS = `${GTK_CONFIG} --cflags`
IMLIBFLAGS = `${IMLIB_CONFIG} --cflags-gdk`
CFLAGS += -fPIC -Wall $(GTKFLAGS) $(IMLIBFLAGS) -I$(GKRELLM_HDRS)
LDFLAGS := -shared -Wl
INST_DIR := $(DESTDIR)/usr/lib/gkrellm/plugins
USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm/plugins
.PHONY: clean install
all: $(TARGET).so
%.so: %.o
$(CC) $(LDFLAGS) -o $@ $<
clean:
-rm -f $(TARGET).so $(TARGET).o
install:
mkdir -p $(INST_DIR)
cp -f $(TARGET).so $(INST_DIR)
userinstall:
mkdir -p $(USER_INST_DIR)
cp -f $(TARGET).so $(USER_INST_DIR)
syntax highlighted by Code2HTML, v. 0.9.1