Releasing debian version 4.05+dfsg-6+deb7u2.
[syslinux-debian/hramrach.git] / com32 / rosh / Makefile
blob766f68d5765f8abd303f9952a9e0cda8fd27eeda
1 ## -----------------------------------------------------------------------
2 ##
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
4 ## Copyright 2010 Intel Corporation; author: H. Peter Anvin
5 ## Copyright 2008-2010 Gene Cumm - All Rights Reserved
6 ##
7 ## This program is free software; you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, Inc., 53 Temple Place Ste 330,
10 ## Boston MA 02111-1307, USA; either version 2 of the License, or
11 ## (at your option) any later version; incorporated herein by reference.
13 ## -----------------------------------------------------------------------
16 ## ROSH Read Only Shell
19 topdir = ../..
20 MAKEDIR = $(topdir)/mk
21 include $(MAKEDIR)/rosh.mk
23 # from com32/sysdump/Makefile
24 # The DATE is set on the make command line when building binaries for
25 # official release. Otherwise, substitute a hex string that is pretty much
26 # guaranteed to be unique to be unique from build to build.
27 ifndef HEXDATE
28 HEXDATE := $(shell $(PERL) $(topdir)/now.pl $(SRCS) $(wildcard *.h))
29 endif
30 ifndef DATE
31 DATE := $(shell sh $(topdir)/gen-id.sh $(VERSION) $(HEXDATE))
32 endif
34 CFLAGS += -DDATE='"$(DATE)"'
35 LNXCFLAGS += -DDATE='"$(DATE)"'
37 rosh.o: rosh.h
39 rosh.lo: rosh.h
41 all: rosh.c32
43 allgrc: rosh.c32 rosh.lnx
45 tidy dist:
46 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
48 clean: tidy
49 rm -f *.lnx
51 spotless: clean
52 rm -f *.lss *.c32 *.com
53 rm -f *~ \#*
55 install:
57 -include .*.d