initial commit
This commit is contained in:
29
Makefile
Normal file
29
Makefile
Normal 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
|
Reference in New Issue
Block a user