From b89a69ed5068ce164a31b60a763e5a1547080f38 Mon Sep 17 00:00:00 2001 From: Squibid Date: Thu, 19 Dec 2024 00:59:22 -0600 Subject: initial commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..62a9a16 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +include config.mk + +# flags and incs +PKGS = $(GITLIB) +CFLAGS = -DVERSION=\"$(VERSION)\" -Wall -O1 $(GIT) $(ERR) +LIBS = `$(PKG_CONFIG) --libs --cflags $(PKGS)` + +all: XD +XD: XD.o + $(CC) *.o $(CFLAGS) $(LIBS) -o $@ +XD.o: XD.c + +clean: + rm -f XD *.o + +install: XD + mkdir -p $(PREFIX)/bin + cp -f XD $(PREFIX)/bin + chmod 755 $(PREFIX)/bin/XD + +uninstall: XD + rm -f $(PREFIX)/bin/XD -- cgit v1.2.1