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>
14 # Copyright 2016 RackTop Systems.
17 include $(SRC
)/Makefile.master
19 CC
= $(GCC_ROOT
)/bin
/gcc
43 #.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
45 #.elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
51 CPPFLAGS
= -D_STANDALONE
54 #.if ${MACHINE_CPUARCH} == "aarch64"
55 #CFLAGS+= -msoft-float -mgeneral-regs-only
57 #.if ${MACHINE_ARCH} == "amd64"
61 CFLAGS
+= -nostdinc
-I.
-I..
/..
/..
/..
/include -I..
/..
/..
62 CFLAGS
+= -I
$(SRC
)/common
/ficl
-I..
/..
/ficl
63 CFLAGS
+= -I..
/include
64 CFLAGS
+= -I..
/include/${MACH64}
65 CFLAGS
+= -I..
/..
/..
/..
/lib
/libstand
66 CFLAGS
+= -I.
/..
/..
/zfs
67 CFLAGS
+= -I.
/..
/..
/..
/cddl
/boot
/zfs
69 # Pick up the bootstrap header for some interface items
70 CFLAGS
+= -I..
/..
/common
72 # Handle FreeBSD specific %b and %D printf format specifiers
73 # CFLAGS+= ${FORMAT_EXTENSIONS}
74 # CFLAGS += -D__printf__=__freebsd_kprintf__
77 include ..
/Makefile.inc
79 lib
$(LIB
).a
: $(SRCS
) $(OBJS
)
80 $(AR
) $(ARFLAGS
) $@
$(OBJS
)
84 $(RM
) $(CLEANFILES
) $(OBJS
) machine x86 lib
$(LIB
).a
88 $(SYMLINK
) ..
/..
/..
/amd64
/include machine
92 $(SYMLINK
) ..
/..
/..
/x86
/include x86