initial commit

This commit is contained in:
2024-12-19 00:59:22 -06:00
commit b89a69ed50
4 changed files with 228 additions and 0 deletions

22
Makefile Normal file
View File

@ -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