File: Makefile

package info (click to toggle)
ministat 20150715-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 148 kB
  • ctags: 143
  • sloc: ansic: 1,689; makefile: 32
file content (20 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $FreeBSD$
PROG=	ministat

LIBADD=	m

.CURDIR = $(CURDIR)

$(PROG): $(PROG).c
	$(CC) -o $@ $(CFLAGS) -Wall $< $(LDFLAGS) $(patsubst %,-l%,$(LIBADD))

clean:
	rm -f $(PROG)

test:	${PROG}
	./${PROG} < ${.CURDIR}/chameleon
	./${PROG} ${.CURDIR}/chameleon
	./${PROG} ${.CURDIR}/iguana ${.CURDIR}/chameleon
	./${PROG} -c 80 ${.CURDIR}/iguana ${.CURDIR}/chameleon
	./${PROG} -s -c 80 ${.CURDIR}/chameleon ${.CURDIR}/iguana
	./${PROG} -s -c 80 ${.CURDIR}/chameleon ${.CURDIR}/iguana ${.CURDIR}/iguana