~ubuntu-branches/ubuntu/wily/gpw/wily

« back to all changes in this revision

Viewing changes to Makefile.Debian

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2002-03-11 17:09:10 UTC
  • Revision ID: james.westby@ubuntu.com-20020311170910-yp88kghgj83v1y5w
Tags: upstream-0.0.19940601
ImportĀ upstreamĀ versionĀ 0.0.19940601

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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