File: Makefile

package info (click to toggle)
partman-crypto 20etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,068 kB
  • ctags: 64
  • sloc: sh: 1,772; ansic: 172; makefile: 82
file content (23 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
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: base64 test-stamp
test-stamp:
	@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 base64 test-stamp