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) $<
|
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) $<
|