Desktop
TARGETS = properties.so volumes.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)
properties_OBJS = properties.o
properties_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
properties_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
properties.so: $(properties_OBJS)
$(LD) -o properties.so $(properties_OBJS) $(properties_LDFLAGS)
volumes_OBJS = volumes.o
volumes_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
volumes_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
volumes.so: $(volumes_OBJS)
$(LD) -o volumes.so $(volumes_OBJS) $(volumes_LDFLAGS)
properties.o: properties.c ../../include/Browser.h ../properties.c
$(CC) $(properties_CFLAGS) -c properties.c
volumes.o: volumes.c ../../include/Browser.h
$(CC) $(volumes_CFLAGS) -c volumes.c
clean:
$(RM) -- $(properties_OBJS) $(volumes_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
$(MKDIR) $(DESTDIR)$(LIBDIR)/Browser/plugins
$(INSTALL) -m 0644 -- properties.so $(DESTDIR)$(LIBDIR)/Browser/plugins/properties.so
$(MKDIR) $(DESTDIR)$(LIBDIR)/Browser/plugins
$(INSTALL) -m 0644 -- volumes.so $(DESTDIR)$(LIBDIR)/Browser/plugins/volumes.so
uninstall:
$(RM) -- $(DESTDIR)$(LIBDIR)/Browser/plugins/properties.so
$(RM) -- $(DESTDIR)$(LIBDIR)/Browser/plugins/volumes.so
.PHONY: all clean distclean install uninstall