From bb52f5a54acc89afb936eda41daa473f15913a7b Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 30 Jul 2024 11:21:40 -0400 Subject: initial commit --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d822b50 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +PKG_CONFIG = pkg-config +CC = cc + +# flags and incs +PKGS = +CFLAGS = -Wall +LIBS = `$(PKG_CONFIG) --libs --cflags $(PKGS)` -lm + +PREFIX = /usr/local +MANDIR = $(PREFIX)/share/man + +all: teams +teams: teams.o + $(CC) *.o $(CFLAGS) $(LIBS) -o $@ +teams.o: teams.c + +clean: + rm -f teams *.o + +install: teams + mkdir -p $(PREFIX)/bin + cp -f teams $(PREFIX)/bin + chmod 755 $(PREFIX)/bin/teams + mkdir -p $(MANDIR)/man1 + cp -f teams.1 $(MANDIR)/man1 + chmod 644 $(MANDIR)/man1/teams.1 + +uninstall: teams + rm -f $(PREFIX)/bin/teams $(MANDIR)/man1/teams.1 -- cgit v1.2.1