2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Toomas Soome <tsoome@me.com>
16 include $(SRC
)/Makefile.master
18 CC
= $(GCC_ROOT
)/bin
/gcc
22 all: machine x86 lib
$(LIB
).a
25 SRCS
= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
33 #.if ${MACHINE_CPUARCH} == "aarch64"
34 #CFLAGS+= -msoft-float -mgeneral-regs-only
36 #.if ${MACHINE_ARCH} == "amd64"
40 CFLAGS
+= -nostdinc
-I.
-I..
/..
/..
/..
/include -I..
/..
/..
41 CFLAGS
+= -I..
/include
42 CFLAGS
+= -I..
/include/${MACH64}
43 CFLAGS
+= -I..
/..
/..
/..
/lib
/libstand
45 # Pick up the bootstrap header for some interface items
46 CFLAGS
+= -I..
/..
/common
48 # Handle FreeBSD specific %b and %D printf format specifiers
49 # CFLAGS+= ${FORMAT_EXTENSIONS}
50 # CFLAGS += -D__printf__=__freebsd_kprintf__
53 include ..
/Makefile.inc
55 lib
$(LIB
).a
: $(SRCS
) $(OBJS
)
56 $(AR
) $(ARFLAGS
) $@
$(OBJS
)
60 $(RM
) $(CLEANFILES
) $(OBJS
) machine x86 lib
$(LIB
).a
64 $(SYMLINK
) ..
/..
/..
/amd64
/include machine
68 $(SYMLINK
) ..
/..
/..
/x86
/include x86