1 # 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 5 # 1.0 of the CDDL. 6 # 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. 10 # 11 12 # 13 # Copyright 2016 Toomas Soome <tsoome@me.com> 14 # 15 16 include $(SRC)/Makefile.master 17 include $(SRC)/boot/sys/boot/Makefile.inc 18 19 CPPFLAGS += -I../../../../include -I$(SASRC) 20 CPPFLAGS += -I../../.. -I. -I$(SRC)/common/bzip2 21 22 $(LIBRARY): $(SRCS) $(OBJS) 23 $(AR) $(ARFLAGS) $@ $(OBJS) 24 25 include $(SASRC)/Makefile.inc 26 include $(ZFSSRC)/Makefile.inc 27 28 CPPFLAGS += -I$(SRC)/uts/common 29 30 clean: clobber 31 clobber: 32 $(RM) $(CLEANFILES) $(OBJS) machine $(LIBRARY) 33 34 machine: 35 $(RM) machine 36 $(SYMLINK) ../../../$(MACHINE)/include machine 37 38 x86: 39 $(RM) x86 40 $(SYMLINK) ../../../x86/include x86 41 42 %.o: $(SASRC)/%.c 43 $(COMPILE.c) $< 44 45 %.o: $(LIBSRC)/libc/net/%.c 46 $(COMPILE.c) $< 47 48 %.o: $(LIBSRC)/libc/string/%.c 49 $(COMPILE.c) $< 50 51 %.o: $(LIBSRC)/libc/uuid/%.c 52 $(COMPILE.c) $< 53 54 %.o: $(ZLIB)/%.c 55 $(COMPILE.c) $<