diff options
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 |