diff options
author | Squibid <me@zacharyscheiman.com> | 2024-12-19 00:59:22 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-12-19 01:03:54 -0600 |
commit | b89a69ed5068ce164a31b60a763e5a1547080f38 (patch) | |
tree | 163d124d9cc9a2e1ae1d47413c461da564a02cdd /Makefile | |
download | XD-b89a69ed5068ce164a31b60a763e5a1547080f38.tar.gz XD-b89a69ed5068ce164a31b60a763e5a1547080f38.tar.bz2 XD-b89a69ed5068ce164a31b60a763e5a1547080f38.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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 |