summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: da40814a3779997c2a42dcd6ae5581fed9e11145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC = gcc
CFLAGS=-Wall -std=c99

DESTDIR=

all:
	$(CC) $(CFLAGS) io-psd.c  -o libpixbufloader-psd.so \
		`pkg-config --libs --cflags glib-2.0 gmodule-2.0 gdk-pixbuf-2.0` \
		-shared -fpic -DGDK_PIXBUF_ENABLE_BACKEND

clean:
	rm libpixbufloader-psd.so

install:
	chmod 644 libpixbufloader-psd.so
	mkdir -p $(DESTDIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/
	cp libpixbufloader-psd.so $(DESTDIR)/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/
	gdk-pixbuf-query-loaders --update-cache