blob: 9c5cef6dc2030de7976d9067c1db3fef446271f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
.POSIX:
XCFLAGS = ${CPPFLAGS} ${CFLAGS} -nostdlib -std=c99 -fPIC -Wall -Wno-pedantic
XLDFLAGS = ${LDFLAGS} -shared -Wl
all: libdbus-glib-1.so.2
.c.o:
${CC} ${XCFLAGS} -c -o $@ $<
libdbus-glib-1.so.2:
${CC} ${XCFLAGS} libdbus-glib-1.c -o libdbus-glib-1.so.2 ${XLDFLAGS},-soname,libdbus-glib-1.so.2
install: libdbus-glib-1.so.2
mkdir -p ${DESTDIR}/usr/lib64
cp -f libdbus-glib-1.so.2 ${DESTDIR}/usr/lib64
# mkdir -p ${DESTDIR}/usr/lib64/pkgconfig
# cp -f pc/* ${DESTDIR}/usr/lib64/pkgconfig
# mkdir -p ${DESTDIR}/usr/include/gtk-2.0/gtk
# cp -rf headers/* ${DESTDIR}/usr/include/gtk-2.0
uninstall:
rm -f ${DESTDIR}/usr/lib64/libdbus-glib-1.so.2
clean:
rm -f libdbus-glib-1.so.2
.PHONY: all clean install uninstall
|