Makefile (537B)
1 libhart_srcs+=\ 2 rt/abort.ha \ 3 rt/cstrings.ha \ 4 rt/compile.ha \ 5 rt/ensure.ha \ 6 rt/malloc.ha \ 7 rt/memcpy.ha \ 8 rt/memmove.ha \ 9 rt/memset.ha \ 10 rt/rtmain.ha \ 11 rt/strcmp.ha 12 13 libhart.a: harec $(libhart_srcs) $(libhart_objs) $(rtstart) 14 @printf 'HAREC\t$@\n' 15 @mkdir -p $(HARECACHE)/rt 16 @./harec -Nrt -t$(HARECACHE)/rt/rt.td -o $@.ssa $(libhart_srcs) 17 @$(QBE) -o $@.s $@.ssa 18 @$(AS) -g -o $@.o $@.s 19 @$(AR) -csr $@ $@.o $(libhart_objs) 20 @rm $@.o $@.s $@.ssa 21 22 clean-rt: 23 @rm -f libhart.a $(libhart_objs) $(rtstart) 24 25 .PHONY: rt clean-rt