Home | History | Annotate | Line # | Download | only in apps
Makefile revision 1.1.1.1.6.2
      1  1.1.1.1.6.2  yamt #
      2  1.1.1.1.6.2  yamt #  Copyright (C) 1999-2001 Hewlett-Packard Co.
      3  1.1.1.1.6.2  yamt #	Contributed by David Mosberger <davidm (at] hpl.hp.com>
      4  1.1.1.1.6.2  yamt #	Contributed by Stephane Eranian <eranian (at] hpl.hp.com>
      5  1.1.1.1.6.2  yamt #
      6  1.1.1.1.6.2  yamt #    All rights reserved.
      7  1.1.1.1.6.2  yamt #
      8  1.1.1.1.6.2  yamt #    Redistribution and use in source and binary forms, with or without
      9  1.1.1.1.6.2  yamt #    modification, are permitted provided that the following conditions
     10  1.1.1.1.6.2  yamt #    are met:
     11  1.1.1.1.6.2  yamt #
     12  1.1.1.1.6.2  yamt #    * Redistributions of source code must retain the above copyright
     13  1.1.1.1.6.2  yamt #      notice, this list of conditions and the following disclaimer.
     14  1.1.1.1.6.2  yamt #    * Redistributions in binary form must reproduce the above
     15  1.1.1.1.6.2  yamt #      copyright notice, this list of conditions and the following
     16  1.1.1.1.6.2  yamt #      disclaimer in the documentation and/or other materials
     17  1.1.1.1.6.2  yamt #      provided with the distribution.
     18  1.1.1.1.6.2  yamt #    * Neither the name of Hewlett-Packard Co. nor the names of its
     19  1.1.1.1.6.2  yamt #      contributors may be used to endorse or promote products derived
     20  1.1.1.1.6.2  yamt #      from this software without specific prior written permission.
     21  1.1.1.1.6.2  yamt #
     22  1.1.1.1.6.2  yamt #    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
     23  1.1.1.1.6.2  yamt #    CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
     24  1.1.1.1.6.2  yamt #    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     25  1.1.1.1.6.2  yamt #    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     26  1.1.1.1.6.2  yamt #    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
     27  1.1.1.1.6.2  yamt #    BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
     28  1.1.1.1.6.2  yamt #    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     29  1.1.1.1.6.2  yamt #    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     30  1.1.1.1.6.2  yamt #    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     31  1.1.1.1.6.2  yamt #    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
     32  1.1.1.1.6.2  yamt #    TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
     33  1.1.1.1.6.2  yamt #    THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     34  1.1.1.1.6.2  yamt #    SUCH DAMAGE.
     35  1.1.1.1.6.2  yamt #
     36  1.1.1.1.6.2  yamt 
     37  1.1.1.1.6.2  yamt SRCDIR = .
     38  1.1.1.1.6.2  yamt 
     39  1.1.1.1.6.2  yamt VPATH = $(SRCDIR)
     40  1.1.1.1.6.2  yamt 
     41  1.1.1.1.6.2  yamt include $(SRCDIR)/../Make.defaults
     42  1.1.1.1.6.2  yamt 
     43  1.1.1.1.6.2  yamt TOPDIR = $(SRCDIR)/..
     44  1.1.1.1.6.2  yamt 
     45  1.1.1.1.6.2  yamt CDIR=$(TOPDIR)/..
     46  1.1.1.1.6.2  yamt LINUX_HEADERS	= /usr/src/sys/build
     47  1.1.1.1.6.2  yamt CPPFLAGS	+= -D__KERNEL__ -I$(LINUX_HEADERS)/include
     48  1.1.1.1.6.2  yamt CRTOBJS		= ../gnuefi/crt0-efi-$(ARCH).o
     49  1.1.1.1.6.2  yamt 
     50  1.1.1.1.6.2  yamt LDSCRIPT	= $(TOPDIR)/gnuefi/elf_$(ARCH)_efi.lds
     51  1.1.1.1.6.2  yamt ifneq (,$(findstring FreeBSD,$(OS)))
     52  1.1.1.1.6.2  yamt LDSCRIPT	= $(TOPDIR)/gnuefi/elf_$(ARCH)_fbsd_efi.lds
     53  1.1.1.1.6.2  yamt endif
     54  1.1.1.1.6.2  yamt 
     55  1.1.1.1.6.2  yamt LDFLAGS		+= -T $(LDSCRIPT) -shared -Bsymbolic -L../lib -L../gnuefi $(CRTOBJS)
     56  1.1.1.1.6.2  yamt LOADLIBES	= -lefi -lgnuefi $(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
     57  1.1.1.1.6.2  yamt FORMAT		= efi-app-$(ARCH)
     58  1.1.1.1.6.2  yamt 
     59  1.1.1.1.6.2  yamt TARGETS = t.efi t2.efi t3.efi t4.efi t5.efi t6.efi printenv.efi t7.efi tcc.efi modelist.efi route80h.efi
     60  1.1.1.1.6.2  yamt 
     61  1.1.1.1.6.2  yamt all:	$(TARGETS)
     62  1.1.1.1.6.2  yamt 
     63  1.1.1.1.6.2  yamt clean:
     64  1.1.1.1.6.2  yamt 	rm -f $(TARGETS) *~ *.o *.so
     65  1.1.1.1.6.2  yamt 
     66  1.1.1.1.6.2  yamt .PHONY: install
     67  1.1.1.1.6.2  yamt 
     68  1.1.1.1.6.2  yamt include $(SRCDIR)/../Make.rules
     69