|
|
1.1 root 1: tst-makefile:
2: @echo 1>&2 run make from a target-specific directory
3:
4: test: $(V)/tst/8q.s \
5: $(V)/tst/array.s \
6: $(V)/tst/cf.s \
7: $(V)/tst/cq.s \
8: $(V)/tst/cvt.s \
9: $(V)/tst/fields.s \
10: $(V)/tst/front.s \
11: $(V)/tst/incr.s \
12: $(V)/tst/init.s \
13: $(V)/tst/limits.s \
14: $(V)/tst/paranoia.s \
15: $(V)/tst/sort.s \
16: $(V)/tst/spill.s \
17: $(V)/tst/stdarg.s \
18: $(V)/tst/struct.s \
19: $(V)/tst/switch.s \
20: $(V)/tst/wf1.s \
21: $(V)/tst/yacc.s
22:
23: T=../tst
24: CMD=@cd $(V); ../run $(TARGET) $(OS)
25:
26: $(V)/tst/8q.s: $(RUN) $(D)/rcc $(T)/8q.c $(T)/8q.0; $(CMD) 8q
27: $(V)/tst/array.s: $(RUN) $(D)/rcc $(T)/array.c $(T)/array.0; $(CMD) array
28: $(V)/tst/cf.s: $(RUN) $(D)/rcc $(T)/cf.c $(T)/cf.0; $(CMD) cf
29: $(V)/tst/cq.s: $(RUN) $(D)/rcc $(T)/cq.c $(T)/cq.0; $(CMD) cq
30: $(V)/tst/cvt.s: $(RUN) $(D)/rcc $(T)/cvt.c $(T)/cvt.0; $(CMD) cvt
31: $(V)/tst/fields.s: $(RUN) $(D)/rcc $(T)/fields.c $(T)/fields.0; $(CMD) fields
32: $(V)/tst/front.s: $(RUN) $(D)/rcc $(T)/front.c $(T)/front.0; $(CMD) front
33: $(V)/tst/incr.s: $(RUN) $(D)/rcc $(T)/incr.c $(T)/incr.0; $(CMD) incr
34: $(V)/tst/init.s: $(RUN) $(D)/rcc $(T)/init.c $(T)/init.0; $(CMD) init
35: $(V)/tst/limits.s: $(RUN) $(D)/rcc $(T)/limits.c $(T)/limits.0; $(CMD) limits
36: $(V)/tst/paranoia.s: $(RUN) $(D)/rcc $(T)/paranoia.c $(T)/paranoia.0;$(CMD) paranoia
37: $(V)/tst/sort.s: $(RUN) $(D)/rcc $(T)/sort.c $(T)/sort.0; $(CMD) sort
38: $(V)/tst/spill.s: $(RUN) $(D)/rcc $(T)/spill.c $(T)/spill.0; $(CMD) spill
39: $(V)/tst/stdarg.s: $(RUN) $(D)/rcc $(T)/stdarg.c $(T)/stdarg.0; $(CMD) stdarg
40: $(V)/tst/struct.s: $(RUN) $(D)/rcc $(T)/struct.c $(T)/struct.0; $(CMD) struct
41: $(V)/tst/switch.s: $(RUN) $(D)/rcc $(T)/switch.c $(T)/switch.0; $(CMD) switch
42: $(V)/tst/wf1.s: $(RUN) $(D)/rcc $(T)/wf1.c $(T)/wf1.0; $(CMD) wf1
43: $(V)/tst/yacc.s: $(RUN) $(D)/rcc $(T)/yacc.c $(T)/yacc.0; $(CMD) yacc
44:
45: OPTS=HOST=$(HOST) HOSTOS=$(HOSTOS) CC='lcc -B$(HOST)-$(HOSTOS)/ -d0.1 -A' \
46: CFLAGS='-I../include/$(HOST)_$(HOSTOS) $(CFLAGS)' \
47: LDFLAGS='$(LDFLAGS)'
48:
49: triple: $(D)/rcc
50: rm -f $(D)/*.o
51: make $(OPTS) $(D)/rcc
52: -od +8 <$(D)/rcc >$(D)/tst/od2
53: rm -f $(D)/*.o
54: make $(OPTS) $(D)/rcc
55: -od +8 <$(D)/rcc >$(D)/tst/od3
56: cmp $(D)/tst/od[23] && rm $(D)/tst/od[23]
57:
58: clean:
59: rm -f $(D)/*.o $(D)/tst/od[23] $(V)/tst/*.[12so]
60: -cd $(V)/tst; rm -f 8q array cf cq cvt fields front incr init \
61: limits paranoia sort spill stdarg struct switch wf1 yacc
62:
63: clobber: clean
64: rm -f $(D)/rcc
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.