Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
# Makefile for Away |
| 2 |
|
| 3 |
# files and paths |
| 4 |
SHELL = /bin/sh |
| 5 |
PREFIX = /usr/local |
| 6 |
BINARY = away |
| 7 |
SRC = $(BINARY).c |
| 8 |
|
| 9 |
# compiler |
| 10 |
CC = gcc |
| 11 |
CFLAGS = -O2 -Wall -D_REENTRANT |
| 12 |
LIBS = -lpthread -lpam -lpam_misc |
| 13 |
|
| 14 |
# alias away |
| 15 |
all: $(BINARY) |
| 16 |
|
| 17 |
# away |
| 18 |
$(BINARY): $(SRC) |
| 19 |
$(CC) $(CFLAGS) $(LIBS) $(SRC) -o $(BINARY) |
| 20 |
# @strip $(BINARY) |
| 21 |
|
| 22 |
# make install |
| 23 |
install: $(BINARY) |
| 24 |
cp $(BINARY) $(PREFIX)/bin/ |
| 25 |
cp doc/away.1 $(PREFIX)/man/man1/ |
| 26 |
cp doc/awayrc.5 $(PREFIX)/man/man5/ |
| 27 |
cp data/away.pam /etc/pam.d/away |
| 28 |
|
| 29 |
# Clean up |
| 30 |
clean: |
| 31 |
rm -f $(BINARY) *.o core |