File: Makefile

package info (click to toggle)
otp 1:1.2.2-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 204 kB
  • ctags: 78
  • sloc: ansic: 704; makefile: 98; sh: 10
file content (42 lines) | stat: -rw-r--r-- 837 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42

CC = gcc
#CFLAGS = -g -DDEBUG
#CFLAGS = -O -Wall

VERSION = 1.2.2

PAGER = less

FILES = Makefile Onetime.sln Onetime.vcproj README log.txt md5.c \
	md5.h otp.1 otp.c otp.exe random.c test.bat test.mas test.sh

otp:	otp.o md5.o random.o
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) otp.o md5.o random.o -o otp

manpage:
	nroff -man otp.1 | $(PAGER)

printman:
	groff -man otp.1 | lp

otp.man: otp.1
	nroff -man otp.1 | col -b >otp.man

dist:	clean
	mkdir otp-$(VERSION)
	cp -p $(FILES) otp-$(VERSION)
	tar cfv otp-$(VERSION).tar otp-$(VERSION)
	rm -f otp-$(VERSION).tar.gz
	gzip otp-$(VERSION).tar
	rm -rf otp-$(VERSION)

check:	otp
	chmod u+x test.bat
	./test.sh
	diff test.mas test.out

clean:
	rm -f *.bak *.o otp test.out *.shar core core.* \
	      *.obj *.pdb *.sbr *.bsc *.vcw *.bin t?*.md5 \
	      *.gz *.tar
	rm -rf otp-$(VERSION)