Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1
2 CC = gcc
3 #CFLAGS = -g -DDEBUG
4 CFLAGS = -O -Wall
5
6 VERSION = 1.2.2
7
8 PAGER = less
9
10 FILES = Makefile Onetime.sln Onetime.vcproj README log.txt md5.c \
11 md5.h otp.1 otp.c otp.exe random.c test.bat test.mas test.sh
12
13 otp: otp.o md5.o random.o
14 $(CC) $(CFLAGS) otp.o md5.o random.o -o otp
15
16 manpage:
17 nroff -man otp.1 | $(PAGER)
18
19 printman:
20 groff -man otp.1 | lp
21
22 otp.man: otp.1
23 nroff -man otp.1 | col -b >otp.man
24
25 dist: clean
26 mkdir otp-$(VERSION)
27 cp -p $(FILES) otp-$(VERSION)
28 tar cfv otp-$(VERSION).tar otp-$(VERSION)
29 rm -f otp-$(VERSION).tar.gz
30 gzip otp-$(VERSION).tar
31 rm -rf otp-$(VERSION)
32
33 check: otp
34 chmod u+x test.bat
35 ./test.sh
36 diff test.mas test.out
37
38 clean:
39 rm -f *.bak *.o otp test.out *.shar core core.* \
40 *.obj *.pdb *.sbr *.bsc *.vcw *.bin t?*.md5 \
41 *.gz *.tar
42 rm -rf otp-$(VERSION)