diff options
author | Squibid <me@zacharyscheiman.com> | 2024-07-30 11:21:40 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-07-30 11:25:33 -0400 |
commit | bb52f5a54acc89afb936eda41daa473f15913a7b (patch) | |
tree | 15e2e659cc58fb64d64a2efbd5d35856344638d4 /Makefile | |
download | teams-master.tar.gz teams-master.tar.bz2 teams-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
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 |