shithub: mc

ref: c3b5d8f485e8d981d12d7c59386f39125cb3a864
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