Files
XD/Makefile
Squibid 6025b2d832 Add -e flag to explain what the previous smiley face means. This
requires us to also know what the previous return signal is, so
if XD is given a return code, it passes it through when finishing
execution.
2025-02-18 14:32:40 -06:00

26 lines
496 B
Makefile

include config.mk
# flags and incs
PKGS = $(GITLIB)
CFLAGS = -DVERSION=\"$(VERSION)\" -Wall -pedantic -O3 $(GIT) $(ERR) $(EXPLAIN)
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
mkdir -p $(MANDIR)/man1
cp -f XD.1 $(MANDIR)/man1
chmod 644 $(MANDIR)/man1/XD.1
uninstall: XD
rm -f $(PREFIX)/bin/XD $(MANDIR)/man1/XD.1