Makefile.com revision 199767f8919635c4928607450d9e0abb932109ce
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2016 Toomas Soome <tsoome@me.com>
#
include $(SRC)/Makefile.master
LIB= zfsboot
all: machine x86 libzfsboot.a
clean: clobber
clobber:
$(RM) machine x86 $(OBJS) libzfsboot.a
CC= $(GCC_ROOT)/bin/gcc
CPPFLAGS=
SRCS += ../zfs.c ../gzip.c
OBJS += zfs.o gzip.o
CFLAGS= -O2 -nostdinc -I../../../../include -I../../..
CFLAGS += -I../../common -I../../.. -I.. -I.
CFLAGS += -I../../../../lib/libstand
CFLAGS += -I../../../../lib/libz
CFLAGS += -I../../../cddl/boot/zfs
CFLAGS += -ffreestanding
CFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
CFLAGS += -Wformat -Wall -std=gnu99
CLEANFILES += machine x86
machine:
$(RM) machine
$(SYMLINK) ../../../$(MACHINE)/include machine
x86:
$(RM) x86
$(SYMLINK) ../../../x86/include x86
libzfsboot.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
%.o: ../%.c
$(COMPILE.c) -o $@ $<
zfs.o: ../zfsimpl.c