blob: d822b501c40f494a7e2c0b75427cc212508d9e94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|