include $(ROOT)/usr/include/make/SCdefs

TARGETS = bootx.bin

ASFILES = boots.s 
CFILES = bootx.c

default: $(TARGETS)

install: default
	$(INSTALL) $(TARGETS) $(ROOT)/usr/bin/sc

ifneq ($(filter runtests clean clobber, $(MAKECMDGOALS)),)
SUBDIRS =
endif

include $(COMMONRULES)

LDIRT += bootx.elf
LLDLIBS = -lioslibc
LLDOPTS = -Ttext 0x80000 -Xlinker -N
LCOPTS = -mthumb
OPTIMIZER = -Os

bootx.elf: $(OBJECTS)
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)

