xref: /illumos-gate/usr/src/boot/i386/btx/lib/Makefile (revision 5d9d9091f564c198a760790b0bfa72c44e17912b)
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 SoomeCPPFLAGS += -I./../../common
22*5d9d9091SRichard LoweAS_CPPFLAGS += $(CPPFLAGS)
2322028508SToomas Soome
2422028508SToomas SoomePROG=	crt0.o
2522028508SToomas SoomeSRCS=	btxcsu.S btxsys.s btxv86.s
2622028508SToomas SoomeOBJS=	btxcsu.o btxsys.o btxv86.o
2722028508SToomas Soome
2822028508SToomas SoomeLDFLAGS = -r $(GLDTARGET)
2922028508SToomas Soome
3022028508SToomas Soomeall install: $(PROG)
3122028508SToomas Soome
3222028508SToomas Soome$(PROG): $(OBJS)
33db1a8debSToomas Soome	$(GLD) $(LDFLAGS) -o $@ $(OBJS)
3422028508SToomas Soome
3522028508SToomas Soomeclobber: clean
3622028508SToomas Soome
3722028508SToomas Soomeclean:
3822028508SToomas Soome	$(RM) $(PROG) $(OBJS)
39