File: Makefile

package info (click to toggle)
gpw 0.0.19940601-9
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 112 kB
  • ctags: 27
  • sloc: ansic: 339; makefile: 41
file content (27 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (5)
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
# Makefile for password generator
# THVV 6/1/94
#

DEBUGARGS = -g
COMPILER = gcc

all : gpw loadtris
	echo gpw created, can delete loadtris

gpw : gpw.o
	$(COMPILER) $(DEBUGARGS) -o gpw gpw.o

trigram.h : loadtris
	./loadtris /usr/dict/words | sed "s/, }/}/" > trigram.h

gpw.o : gpw.c trigram.h
	$(COMPILER) $(DEBUGARGS) -o gpw.o -c gpw.c

loadtris : loadtris.o
	$(COMPILER) $(DEBUGARGS) -o loadtris loadtris.o

loadtris.o : loadtris.c
	$(COMPILER) $(DEBUGARGS) -o loadtris.o -c loadtris.c

clean : 
	rm gpw loadtris loadtris.o gpw.o # trigram.h