summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorstefan11111 <stefan11111@shitposting.expert>2024-01-06 15:34:51 +0200
committerGitHub <noreply@github.com>2024-01-06 15:34:51 +0200
commit9a2f8998e247e43b63e64a20fdee6320ecfc356d (patch)
tree5eb76d5f739332557f067b84448f9f019440fc69 /Makefile
parent78b96539059672259c15fa2f1ddcd3747114d209 (diff)
downloadfake-dbus-9a2f8998e247e43b63e64a20fdee6320ecfc356d.tar.gz
Add files via upload
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9c5cef6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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