xref: /illumos-gate/usr/src/boot/libsa/Makefile.com (revision ed093b41a93e8563e6e1e5dae0768dda2a7bcc27)
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
17include $(SRC)/boot/Makefile.inc
18
19CPPFLAGS +=	-I../../include -I$(SASRC)
20CPPFLAGS +=	-I../../sys -I.
21
22include $(SASRC)/Makefile.inc
23include $(CRYPTOSRC)/Makefile.inc
24include $(ZFSSRC)/Makefile.inc
25
26CPPFLAGS +=	-I$(SRC)/uts/common
27
28# 64-bit smatch false positive :/
29SMOFF += uninitialized
30
31# needs work
32objs/printf.o := SMOFF += 64bit_shift
33pics/printf.o := SMOFF += 64bit_shift
34
35machine:
36	$(RM) machine
37	$(SYMLINK) ../../sys/$(MACHINE)/include machine
38
39x86:
40	$(RM) x86
41	$(SYMLINK) ../../sys/x86/include x86
42
43pics/%.o objs/%.o:	%.c
44	$(COMPILE.c) -o $@ $<
45
46pics/%.o objs/%.o:	$(SASRC)/%.c
47	$(COMPILE.c) -o $@ $<
48
49pics/%.o objs/%.o:	$(SASRC)/string/%.c
50	$(COMPILE.c) -o $@ $<
51
52pics/%.o objs/%.o:	$(SASRC)/uuid/%.c
53	$(COMPILE.c) -o $@ $<
54
55pics/%.o objs/%.o:	$(ZLIB)/%.c
56	$(COMPILE.c) -o $@ $<
57
58pics/%.o objs/%.o:	$(LZ4)/%.c
59	$(COMPILE.c) -o $@ $<
60
61pics/%.o objs/%.o:	$(SRC)/common/util/%.c
62	$(COMPILE.c) -o $@ $<
63
64clean: clobber
65clobber:
66	$(RM) $(CLEANFILES) machine x86
67