usr/src/boot: add .PARALLEL to makefiles
[unleashed.git] / usr / src / boot / sys / boot / efi / libefi / Makefile.com
blob46d6537b1bef725131eddcc804666bff1fb5931a
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.
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.
13 # Copyright 2016 Toomas Soome <tsoome@me.com>
16 include $(SRC)/Makefile.master
18 CC=     $(GNUC_ROOT)/bin/gcc
20 install:
22 SRCS += delay.c \
23         devicename.c \
24         devpath.c \
25         efi_console.c \
26         efi_driver_utils.c \
27         efichar.c \
28         efienv.c \
29         efinet.c \
30         efipart.c \
31         efizfs.c \
32         env.c \
33         errno.c \
34         handles.c \
35         libefi.c \
36         wchar.c
38 OBJS=   $(SRCS:%.c=%.o)
40 .PARALLEL:
42 CPPFLAGS= -D_STANDALONE
43 CFLAGS  = -O2
45 CPPFLAGS += -nostdinc -I. -I../../../../../include -I../../../..
46 CPPFLAGS += -I$(SRC)/common/ficl -I../../../libficl
47 CPPFLAGS += -I../../include
48 CPPFLAGS += -I../../include/$(MACHINE)
49 CPPFLAGS += -I../../../../../lib/libstand
50 CPPFLAGS += -I../../../zfs
51 CPPFLAGS += -I../../../../cddl/boot/zfs
53 # Pick up the bootstrap header for some interface items
54 CPPFLAGS += -I../../../common
55 CPPFLAGS += -DTERM_EMU
57 include ../../Makefile.inc
59 libefi.a: $(OBJS)
60         $(AR) $(ARFLAGS) $@ $(OBJS)
62 clean: clobber
63 clobber:
64         $(RM) $(CLEANFILES) $(OBJS) libefi.a
66 machine:
67         $(RM) machine
68         $(SYMLINK) ../../../../$(MACHINE)/include machine
70 x86:
71         $(RM) x86
72         $(SYMLINK) ../../../../x86/include x86
74 %.o:    ../%.c
75         $(COMPILE.c) $<