| 1 |
# Makefile for password generator under Debian GNU/Linux |
| 2 |
# |
| 3 |
|
| 4 |
DEBUGARGS = -g |
| 5 |
COMPILER = gcc -Wall -O2 |
| 6 |
|
| 7 |
# Edited for Debian GNU/Linux |
| 8 |
DESTDIR= |
| 9 |
BIN=$(DESTDIR)/usr/bin |
| 10 |
|
| 11 |
all : gpw loadtris |
| 12 |
echo gpw created, can delete loadtris |
| 13 |
|
| 14 |
gpw : gpw.o |
| 15 |
$(COMPILER) $(DEBUGARGS) -o gpw gpw.o |
| 16 |
|
| 17 |
trigram.h : loadtris |
| 18 |
./loadtris /usr/share/dict/words | sed "s/, }/}/" > trigram.h |
| 19 |
|
| 20 |
gpw.o : gpw.c trigram.h |
| 21 |
$(COMPILER) $(DEBUGARGS) -o gpw.o -c gpw.c |
| 22 |
|
| 23 |
loadtris : loadtris.o |
| 24 |
$(COMPILER) $(DEBUGARGS) -o loadtris loadtris.o |
| 25 |
|
| 26 |
loadtris.o : loadtris.c |
| 27 |
$(COMPILER) $(DEBUGARGS) -o loadtris.o -c loadtris.c |
| 28 |
|
| 29 |
clean : |
| 30 |
rm -f gpw loadtris loadtris.o gpw.o trigram.h |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
# Modified for Debian GNU/Linux |
| 35 |
|
| 36 |
install: |
| 37 |
install -d $(DESTDIR) $(BIN) |
| 38 |
install -m 755 ./gpw $(BIN) |
| 39 |
|