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
18 LIB= zfsboot
19
20 all: machine x86 libzfsboot.a
21 clean: clobber
22
23 clobber:
24 $(RM) machine x86 $(OBJS) libzfsboot.a
25
26 CC= $(GCC_ROOT)/bin/gcc
27 CPPFLAGS=
28
29 SRCS += ../zfs.c ../gzip.c
30 OBJS += zfs.o gzip.o
31
32 CFLAGS= -O2 -nostdinc -I../../../../include -I../../..
33 CFLAGS += -I../../common -I../../.. -I.. -I.
34 CFLAGS += -I../../../../lib/libstand
35 CFLAGS += -I../../../../lib/libz
36 CFLAGS += -I../../../cddl/boot/zfs
37
38 CFLAGS += -ffreestanding
39 CFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
40 CFLAGS += -Wformat -Wall -std=gnu99
41
42 CLEANFILES += machine x86
43
44 machine:
45 $(RM) machine
46 $(SYMLINK) ../../../$(MACHINE)/include machine
47
48 x86:
49 $(RM) x86
50 $(SYMLINK) ../../../x86/include x86
51
52 libzfsboot.a: $(OBJS)
53 $(AR) $(ARFLAGS) $@ $(OBJS)
54
55 %.o: ../%.c
56 $(COMPILE.c) -o $@ $<
57
58 zfs.o: ../zfsimpl.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 2016 RackTop Systems.
15 #
16
17 include $(SRC)/Makefile.master
18
19 LIB= zfsboot
20
21 all: libzfsboot.a
22
23 clean: clobber
24
25 clobber:
26 $(RM) machine x86 $(OBJS) libzfsboot.a
27
28 CC= $(GCC_ROOT)/bin/gcc
29 CPPFLAGS=
30
31 SRCS += ../zfs.c ../gzip.c
32 OBJS += zfs.o gzip.o
33
34 CFLAGS= -O2 -nostdinc -I../../../../include -I../../..
35 CFLAGS += -I../../common -I../../.. -I.. -I.
36 CFLAGS += -I../../../../lib/libstand
37 CFLAGS += -I../../../../lib/libz
38 CFLAGS += -I../../../cddl/boot/zfs
39
40 CFLAGS += -ffreestanding
41 CFLAGS += -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
42 CFLAGS += -Wformat -Wall -std=gnu99
43
44 CLEANFILES += machine x86
45
46 machine:
47 $(RM) machine
48 $(SYMLINK) ../../../$(MACHINE)/include machine
49
50 x86:
51 $(RM) x86
52 $(SYMLINK) ../../../x86/include x86
53
54 $(OBJS): machine x86
55
56 libzfsboot.a: $(OBJS)
57 $(AR) $(ARFLAGS) $@ $(OBJS)
58
59 %.o: ../%.c
60 $(COMPILE.c) -o $@ $<
61
62 zfs.o: ../zfsimpl.c
|