122028508SToomas Soome# 222028508SToomas Soome# This file and its contents are supplied under the terms of the 322028508SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0. 422028508SToomas Soome# You may only use this file in accordance with the terms of version 522028508SToomas Soome# 1.0 of the CDDL. 622028508SToomas Soome# 722028508SToomas Soome# A full copy of the text of the CDDL should have accompanied this 822028508SToomas Soome# source. A copy of the CDDL is also available via the Internet at 922028508SToomas Soome# http://www.illumos.org/license/CDDL. 1022028508SToomas Soome# 1122028508SToomas Soome 1222028508SToomas Soome# 1322028508SToomas Soome# Copyright 2015 Toomas Soome <tsoome@me.com> 1422028508SToomas Soome# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 1522028508SToomas Soome# 1622028508SToomas Soome 1722028508SToomas Soomeinclude $(SRC)/Makefile.master 1822028508SToomas Soomeinclude $(SRC)/boot/Makefile.inc 1922028508SToomas Soomeinclude ../../Makefile.inc 2022028508SToomas Soome 2122028508SToomas SoomePROG= btxldr 2222028508SToomas SoomeSRCS= btxldr.S 2322028508SToomas SoomeOBJS= btxldr.o 2422028508SToomas Soome 25db1a8debSToomas SoomeCPPFLAGS += -DLOADER_ADDRESS=$(LOADER_ADDRESS) 2622028508SToomas SoomeCPPFLAGS += -DBTXLDR_VERBOSE 2722028508SToomas SoomeCPPFLAGS += -I./../../common 28*5d9d9091SRichard LoweAS_CPPFLAGS += $(CPPFLAGS) 2922028508SToomas Soome 30db1a8debSToomas SoomeLDFLAGS=-e start -Ttext $(LOADER_ADDRESS) -N -S --oformat binary $(GLDTARGET) 3122028508SToomas Soome 3222028508SToomas Soomeall install: $(PROG) 3322028508SToomas Soome 3422028508SToomas Soome$(PROG): $(OBJS) 35db1a8debSToomas Soome $(GLD) $(LDFLAGS) -o $@ $(OBJS) 3622028508SToomas Soome 3722028508SToomas Soomeclobber: clean 3822028508SToomas Soome 3922028508SToomas Soomeclean: 4022028508SToomas Soome $(RM) $(PROG) $(OBJS) 41