initial commit

This commit is contained in:
2024-07-30 11:21:40 -04:00
commit bb52f5a54a
4 changed files with 899 additions and 0 deletions

29
Makefile Normal file
View File

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