aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/ncompress/Makefile
blob: cf543976e4d17a1f4e9e3ced53773f0e4905c1f3 (plain)
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
48
49
50
51
52
include ../rules.mk

all: check


all: compress.gcc.host compress.ccomp.host compress.gcc.k1c compress.ccomp.k1c

compress.gcc.host : compress42.c ../clock.gcc.host.o
	$(CC) $(CFLAGS) $+ -o $@

compress.ccomp.host : compress42.c ../clock.gcc.host.o
	$(CCOMP) $(CCOMPFLAGS) $+ -o $@

compress.gcc.k1c : compress42.gcc.k1c.o ../clock.gcc.k1c.o
	$(K1C_CC) $(K1C_CFLAGS) $+ -o $@

compress.ccomp.k1c : compress42.ccomp.k1c.o ../clock.gcc.k1c.o
	$(K1C_CCOMP) $(K1C_CCOMPFLAGS) $+ -o $@

INFILE=Makefile
COMPRESSED=foo.gcc.host.Z

foo.gcc.host.Z: compress.gcc.host $(INFILE)
	./compress.gcc.host <$(INFILE) >foo.gcc.host.Z 2> foo.gcc.host.Z.out

foo.ccomp.k1c.Z: compress.ccomp.k1c $(INFILE)
	$(EXECUTE) ./compress.ccomp.k1c <$(INFILE) >foo.ccomp.k1c.Z 2> foo.ccomp.k1c.Z.out

foo.gcc.k1c.Z: compress.gcc.k1c $(INFILE)
	$(EXECUTE) ./compress.gcc.k1c <$(INFILE) >foo.gcc.k1c.Z 2> foo.gcc.k1c.Z.out

foo.gcc.host.txt: compress.gcc.host $(COMPRESSED)
	./compress.gcc.host -d <$(COMPRESSED) >foo.gcc.host.txt 2> foo.gcc.host.txt.out

foo.ccomp.k1c.txt: compress.gcc.host $(COMPRESSED)
	$(EXECUTE) ./compress.ccomp.k1c -d <$(COMPRESSED) >foo.ccomp.k1c.txt 2> foo.ccomp.k1c.txt.out

foo.gcc.k1c.txt: compress.gcc.host $(COMPRESSED)
	$(EXECUTE) ./compress.gcc.k1c -d <$(COMPRESSED) >foo.gcc.k1c.txt 2> foo.gcc.k1c.txt.out

check: foo.gcc.host.Z foo.gcc.host.txt foo.ccomp.k1c.Z foo.ccomp.k1c.txt foo.gcc.k1c.Z foo.gcc.k1c.txt
	cmp foo.gcc.host.Z foo.ccomp.k1c.Z
	cmp foo.gcc.host.Z foo.gcc.k1c.Z
	cmp foo.gcc.host.txt foo.ccomp.k1c.txt
	cmp foo.gcc.host.txt foo.gcc.k1c.txt

clean:
	rm -f *.Z *.txt *.out *.o *.s *.host *.k1c

.PHONY: clean

.SECONDARY: %.s