From 9a2f8998e247e43b63e64a20fdee6320ecfc356d Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Sat, 6 Jan 2024 15:34:51 +0200 Subject: Add files via upload --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3