Files
teams/Makefile
2024-07-30 11:25:33 -04:00

30 lines
532 B
Makefile

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