File: Makefile

package info (click to toggle)
ent 1.2debian-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 260 kB
  • sloc: ansic: 410; makefile: 41
file content (47 lines) | stat: -rw-r--r-- 941 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
43
44
45
46
47

#   Unix make file for random test program

CC = gcc
CFLAGS += -g -Wall
#CFLAGS = -O
LDFLAGS += -Wl,-z,now

ent:	ent.o iso8859.o randtest.o chisq.o ent.1
	$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) ent.o iso8859.o randtest.o chisq.o -o ent -lm

ent.c:	iso8859.h randtest.h

DISTFILES = Makefile ent.c ent.exe ent.html \
	    entitle.gif entest.bat entestw32.bat entest.mas \
	    iso8859.c iso8859.h randtest.c randtest.h \
	    chisq.c \
	    ent.sln ent.vcproj

release:
	rm -f random.zip
	zip random.zip $(DISTFILES)

TESTFILE = entitle.gif

check:	ent
	sh entest.bat
	diff entest.mas entest.bak

lint:
	lint *.c

clean:
	rm -f *.o *.bak ent ent.zip

%.1: %.1.txt
	asciidoc -b docbook -d manpage $<
	docbook2x-man $*.1.xml
	mv $*.1 $*.1.pre
	cat $*.1.pre | sed "s/-b /\\\\-b/" | \
		sed "s/-c /\\\\-c/" | \
		sed "s/-f /\\\\-f/" | \
		sed "s/-t /\\\\-t/" | \
		sed "s/-u /\\\\-u/" | \
		sed "s/ -b/ \\\\-b/" > $*.1
	rm -f $*.1.xml $*.1.pre