1199767f8SToomas Soome# 2199767f8SToomas Soome# This file and its contents are supplied under the terms of the 3199767f8SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0. 4199767f8SToomas Soome# You may only use this file in accordance with the terms of version 5199767f8SToomas Soome# 1.0 of the CDDL. 6199767f8SToomas Soome# 7199767f8SToomas Soome# A full copy of the text of the CDDL should have accompanied this 8199767f8SToomas Soome# source. A copy of the CDDL is also available via the Internet at 9199767f8SToomas Soome# http://www.illumos.org/license/CDDL. 10199767f8SToomas Soome# 11199767f8SToomas Soome 12199767f8SToomas Soome# 13199767f8SToomas Soome# Copyright 2015 Toomas Soome <tsoome@me.com> 14f52943a9SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 15199767f8SToomas Soome# 16199767f8SToomas Soome 17199767f8SToomas Soomeinclude $(SRC)/Makefile.master 1822028508SToomas Soomeinclude $(SRC)/boot/Makefile.inc 1986fec011SToomas Soomeinclude ../../Makefile.inc 20199767f8SToomas Soome 2186fec011SToomas SoomeCPPFLAGS += -I./../../common 22*5d9d9091SRichard LoweAS_CPPFLAGS += $(CPPFLAGS) 23199767f8SToomas Soome 24199767f8SToomas SoomePROG= crt0.o 25199767f8SToomas SoomeSRCS= btxcsu.S btxsys.s btxv86.s 26199767f8SToomas SoomeOBJS= btxcsu.o btxsys.o btxv86.o 27199767f8SToomas Soome 28f52943a9SAndy FiddamanLDFLAGS = -r $(GLDTARGET) 29199767f8SToomas Soome 3083b4671eSToomas Soomeall install: $(PROG) 31199767f8SToomas Soome 32199767f8SToomas Soome$(PROG): $(OBJS) 33db1a8debSToomas Soome $(GLD) $(LDFLAGS) -o $@ $(OBJS) 34199767f8SToomas Soome 35199767f8SToomas Soomeclobber: clean 36199767f8SToomas Soome 37199767f8SToomas Soomeclean: 38199767f8SToomas Soome $(RM) $(PROG) $(OBJS) 39