shithub: mc

ref: 4696e9dc4fda1400c881f2177183da3b024633f1
dir: /rt/Makefile/

View raw version
OBJ = _myrrt.o
ASMSRC = start.s common.s abort.s

all: _myrrt.o

include ../config.mk

_myrrt.o: _myrrt.s
	as -g -o $@ $^

_myrrt.s: $(ASMSRC)
	cat $(ASMSRC) > $@

%.s: %-$(SYS).s
	cp $< $@

install: all
	mkdir -p  $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)
	install _myrrt.o $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr)

uninstall:
	rm -f $(abspath $(DESTDIR)/$(INST_ROOT)/lib/myr/_myrrt.o)

clean:
	rm -f _myrrt.o _myrrt.s start.s abort.s