File: Makefile

package info (click to toggle)
partman-crypto 57
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,664 kB
  • sloc: sh: 1,956; ansic: 172; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS = -Wall -Os -s

all: base64 test

base64: base64.c
	$(CC) $(CFLAGS) -o $@ $< 
	strip -s $@

test: test-stamp
test-stamp: base64
	@set -e; \
	echo "Running self-tests"; \
	for t in tests/case*; do \
		num=$${t#tests/case}; \
		echo "  $${t}..."; \
		./base64 < $$t > out$$num; \
		cmp tests/want$$num out$$num; \
		rm out$$num; \
	done
	touch test-stamp

clean:
	rm -f base64 test-stamp