Contents of /tags/mkinitrd-6_1_10/isolinux/Makefile
Parent Directory | Revision Log
Revision 922 -
(show annotations)
(download)
Wed Oct 28 09:51:31 2009 UTC (14 years, 11 months ago) by niro
File size: 2012 byte(s)
Wed Oct 28 09:51:31 2009 UTC (14 years, 11 months ago) by niro
File size: 2012 byte(s)
tagged 'mkinitrd-6_1_10'
1 | ## $Id: Makefile,v 1.2 2007-09-01 23:07:53 niro Exp $ |
2 | ## ----------------------------------------------------------------------- |
3 | ## |
4 | ## Copyright 1998-2005 H. Peter Anvin - All Rights Reserved |
5 | ## |
6 | ## This program is free software; you can redistribute it and/or modify |
7 | ## it under the terms of the GNU General Public License as published by |
8 | ## the Free Software Foundation, Inc., 53 Temple Place Ste 330, |
9 | ## Boston MA 02111-1307, USA; either version 2 of the License, or |
10 | ## (at your option) any later version; incorporated herein by reference. |
11 | ## |
12 | ## ----------------------------------------------------------------------- |
13 | |
14 | # |
15 | # Main Makefile for SYSLINUX |
16 | # |
17 | |
18 | OSTYPE = $(shell uname -msr) |
19 | CC = gcc |
20 | INCLUDE = |
21 | CFLAGS = -W -Wall -Os -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 |
22 | PIC = -fPIC |
23 | LDFLAGS = -O2 -s |
24 | AR = ar |
25 | RANLIB = ranlib |
26 | NASM = nasm -O99 |
27 | PERL = perl |
28 | |
29 | VERSION = $(shell cat version) |
30 | MKINITRD_VERSION = $(shell cat ../VERSION) |
31 | |
32 | DOCS = COPYING NEWS README TODO BUGS isolinux.doc |
33 | |
34 | LIBDIR = /usr/lib/mkinitrd |
35 | DOCDIR = /usr/share/doc/mkinitrd-$(MKINITRD_VERSION)/isolinux |
36 | |
37 | |
38 | # The DATE is set on the make command line when building binaries for |
39 | # official release. Otherwise, substitute a hex string that is pretty much |
40 | # guaranteed to be unique to be unique from build to build. |
41 | ifndef HEXDATE |
42 | HEXDATE := $(shell $(PERL) now.pl ldlinux.asm pxelinux.asm isolinux.asm) |
43 | endif |
44 | ifndef DATE |
45 | DATE := $(HEXDATE) |
46 | endif |
47 | MAKE += DATE=$(DATE) HEXDATE=$(HEXDATE) |
48 | |
49 | isolinux.bin: isolinux.asm kwdhash.gen version.gen checksumiso.pl |
50 | $(NASM) -f bin -DDATE_STR="'$(DATE)'" -DHEXDATE="$(HEXDATE)" \ |
51 | -DMAP=$(@:.bin=.map) -l $(@:.bin=.lst) -o $@ $< |
52 | $(PERL) checkov.pl $(@:.bin=.map) $@ |
53 | $(PERL) checksumiso.pl $@ |
54 | |
55 | install: |
56 | mkdir -p $(DESTDIR)/$(LIBDIR) |
57 | mkdir -p $(DESTDIR)/$(DOCDIR) |
58 | install -m755 -c isolinux.bin $(DESTDIR)/$(LIBDIR) |
59 | for n in $(DOCS); do install -m644 $$n $(DESTDIR)/$(DOCDIR); done |
60 | |
61 | clean: |
62 | for i in isolinux.bin isolinux.lst isolinux.map; do rm -rf $$i; done |