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 2016 Toomas Soome <tsoome@me.com>
16 include $(SRC)/Makefile.master
20 all: machine x86 libzfsboot.a
24 $(RM) machine x86 $(OBJS) libzfsboot.a
26 CC= $(GCC_ROOT)/bin/gcc
29 SRCS += ../zfs.c ../gzip.c
32 CFLAGS= -O2 -nostdinc -I../../../../include -I../../..
33 CFLAGS += -I../../common -I../../.. -I.. -I.
34 CFLAGS += -I../../../../lib/libstand
35 CFLAGS += -I../../../../lib/libz
36 CFLAGS += -I../../../cddl/boot/zfs
38 CFLAGS += -ffreestanding
39 CFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
40 CFLAGS += -Wformat -Wall -std=gnu99
42 CLEANFILES += machine x86
46 $(SYMLINK) ../../../$(MACHINE)/include machine
50 $(SYMLINK) ../../../x86/include x86
53 $(AR) $(ARFLAGS) $@ $(OBJS)