2
# Copyright (C) 1999-2001 Hewlett-Packard Co.
3
# Contributed by David Mosberger <davidm@hpl.hp.com>
4
# Contributed by Stephane Eranian <eranian@hpl.hp.com>
6
# This file is part of the gnu-efi package.
8
# GNU-EFI is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 2, or (at your option)
13
# GNU-EFI is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
18
# You should have received a copy of the GNU General Public License
19
# along with GNU-EFI; see the file COPYING. If not, write to the Free
20
# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
24
include ../Make.defaults
26
LINUX_HEADERS = /usr/src/sys/build
27
CPPFLAGS += -D__KERNEL__ -I$(LINUX_HEADERS)/include
28
CRTOBJS = ../gnuefi/crt0-efi-$(ARCH).o
29
LDSCRIPT = ../gnuefi/elf_$(ARCH)_efi.lds
30
LDFLAGS += -T $(LDSCRIPT) -shared -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
31
LOADLIBES = -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name)
32
FORMAT = efi-app-$(ARCH)
34
TARGETS = t.efi t2.efi t3.efi t4.efi t5.efi t6.efi printenv.efi t7.efi
40
rm -f $(TARGETS) *~ *.o *.so