-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (63 loc) · 1.83 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.POSIX:
XCFLAGS = ${CPPFLAGS} ${CFLAGS} -O2 -nostdlib -std=c99 -fPIC -Wno-pedantic -DATK_COMPILATION
XLDFLAGS = ${LDFLAGS} -shared -Wl,-soname,libatk-1.0.so.0
LINK_TO_GLIB = 0
ifeq ($(LINK_TO_GLIB), 1)
XCFLAGS += $(shell pkg-config --libs gobject-2.0)
endif
LIBDIR ?= /lib64
INCLUDE = -I. -Iatk $(shell pkg-config --cflags glib-2.0)
OBJ = \
atk/atkaction.o\
atk/atkcomponent.o\
atk/atkdocument.o\
atk/atkeditabletext.o\
atk/atk-enum-types.o\
atk/atkgobjectaccessible.o\
atk/atkhyperlink.o\
atk/atkhyperlinkimpl.o\
atk/atkhypertext.o\
atk/atkimage.o\
atk/atkmarshal.o\
atk/atkmisc.o\
atk/atknoopobject.o\
atk/atknoopobjectfactory.o\
atk/atkobject.o\
atk/atkobjectfactory.o\
atk/atkplug.o\
atk/atkprivate.o\
atk/atkrange.o\
atk/atkregistry.o\
atk/atkrelation.o\
atk/atkrelationset.o\
atk/atkselection.o\
atk/atksocket.o\
atk/atkstate.o\
atk/atkstateset.o\
atk/atkstreamablecontent.o\
atk/atktable.o\
atk/atktablecell.o\
atk/atktext.o\
atk/atkutil.o\
atk/atkvalue.o\
atk/atkversion.o\
atk/atkwindow.o\
all: libatk-1.0.so.0.1
.c.o:
${CC} ${INCLUDE} ${XCFLAGS} -c -o $@ $<
libatk-1.0.so.0.1: ${OBJ}
${CC} ${INCLUDE} ${XCFLAGS} -o $@ ${OBJ} ${XLDFLAGS}
install: libatk-1.0.so.0.1
mkdir -p ${DESTDIR}/usr${LIBDIR}
cp -f libatk-1.0.so.0.1 ${DESTDIR}/usr${LIBDIR}
ln -rsf ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so.0.1 ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so.0
ln -rsf ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so.0 ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so
mkdir -p ${DESTDIR}/usr/include/atk-1.0/atk
cp atk/*.h ${DESTDIR}/usr/include/atk-1.0/atk
mkdir -p ${DESTDIR}/usr${LIBDIR}/pkgconfig
cp atk.pc ${DESTDIR}/usr${LIBDIR}/pkgconfig
uninstall:
rm -f ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so.0.1 ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so.0 ${DESTDIR}/usr${LIBDIR}/libatk-1.0.so
clean:
rm -f libatk-1.0.so.0.1 ${OBJ}
.PHONY: all clean install uninstall