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 # Copyright 2019 Joyent, Inc. 15 # 16 17 include $(SRC)/Makefile.master 18 include $(SRC)/boot/sys/boot/Makefile.inc 19 20 CPPFLAGS += -I../../../../include -I$(SASRC) 21 CPPFLAGS += -I../../.. -I. -I$(SRC)/common/bzip2 22 23 $(LIBRARY): $(SRCS) $(OBJS) 24 $(AR) $(ARFLAGS) $@ $(OBJS) 25 26 include $(SASRC)/Makefile.inc 27 include $(ZFSSRC)/Makefile.inc 28 29 CPPFLAGS += -I$(SRC)/uts/common 30 31 # needs work 32 printf.o := SMOFF += 64bit_shift 33 34 # too hairy 35 _inflate.o := SMATCH=off 36 37 # 64-bit smatch false positive :/ 38 SMOFF += uninitialized 39 40 clean: clobber 41 clobber: 42 $(RM) $(CLEANFILES) $(OBJS) machine $(LIBRARY) 43 44 machine: 45 $(RM) machine 46 $(SYMLINK) ../../../$(MACHINE)/include machine 47 48 x86: 49 $(RM) x86 50 $(SYMLINK) ../../../x86/include x86 51 52 %.o: $(SASRC)/%.c 53 $(COMPILE.c) $< 54 55 %.o: $(LIBSRC)/libc/net/%.c 56 $(COMPILE.c) $< 57 58 %.o: $(LIBSRC)/libc/string/%.c 59 $(COMPILE.c) $< 60 61 %.o: $(LIBSRC)/libc/uuid/%.c 62 $(COMPILE.c) $< 63 64 %.o: $(ZLIB)/%.c 65 $(COMPILE.c) $<