Desktop

TARGETS = slider.so
PREFIX = /usr/local
DESTDIR =
LIBDIR = $(PREFIX)/lib
CC = cc
CPPFLAGSF= -I ../../include
CPPFLAGS=
CFLAGSF = -W `pkg-config --cflags libSystem gtk+-2.0`
CFLAGS = -Wall -g -O2 -pedantic -fPIC
AR = ar -rc
RANLIB = ranlib
LD = $(CC) -shared
RM = rm -f
LN = ln -f
MKDIR = mkdir -p
INSTALL = install
all: $(TARGETS)
slider_OBJS = slider.o
slider_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
slider_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
slider.so: $(slider_OBJS)
$(LD) -o slider.so $(slider_OBJS) $(slider_LDFLAGS)
slider.o: slider.c ../../include/Locker.h
$(CC) $(slider_CFLAGS) -c slider.c
clean:
$(RM) -- $(slider_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
$(MKDIR) $(DESTDIR)$(LIBDIR)/Locker/plugins
$(INSTALL) -m 0644 -- slider.so $(DESTDIR)$(LIBDIR)/Locker/plugins/slider.so
uninstall:
$(RM) -- $(DESTDIR)$(LIBDIR)/Locker/plugins/slider.so
.PHONY: all clean distclean install uninstall