Makefile.inc revision 1.13
1# $OpenBSD: Makefile.inc,v 1.13 2016/11/06 16:04:20 tb Exp $ 2# $NetBSD: Makefile.inc,v 1.1 1996/09/30 16:34:59 ws Exp $ 3 4.if !defined(__stand_makefile_inc) 5__stand_makefile_inc=1 6 7KERN_AS= library 8 9S=$(.CURDIR)/../../../$(R) 10 11.if !make(clean) && !make(cleandir) && !make(includes) && !make(libdep) && \ 12 !make(sadep) && !make(salibdir) && !make(obj) && !defined(NOMACHINE) 13.BEGIN: 14 @([ -h machine ] || ln -s $(S)/arch/$(MACHINE)/include machine) 15.endif 16 17# 18EXTRACFLAGS= -msoft-float 19REAL_VIRT?= -v 20ENTRY?= _start 21 22INCLUDES+= -I. -I$(.OBJDIR) -I$(.CURDIR)/.. -I$(S)/arch -I$(S) 23INCLUDES+= -I$(S)/lib/libsa 24DEFS+= -DSTANDALONE 25CFLAGS+= $(INCLUDES) $(DEFS) $(EXTRACFLAGS) 26CFLAGS+= -fno-stack-protector 27CFLAGS+= -fno-builtin -fno-pie 28AFLAGS+= -fno-pie 29LDFLAGS?= -X -N -Ttext $(RELOC) -e $(ENTRY) 30 31cleandir: 32 rm -rf lib machine 33 34.endif 35