Merging upstream version 5.01+dfsg.
[syslinux-debian/hramrach.git] / com32 / rosh / Makefile
blob5b54225be938f38e1c61b7adfa3cef71ae0c8b04
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 LIBS = $(com32)/libutil/libutil.c32 $(com32)/lib/libcom32.c32
21 topdir = ../..
22 MAKEDIR = $(topdir)/mk
23 include $(MAKEDIR)/rosh.mk
25 # from com32/sysdump/Makefile
26 # The DATE is set on the make command line when building binaries for
27 # official release. Otherwise, substitute a hex string that is pretty much
28 # guaranteed to be unique to be unique from build to build.
29 ifndef HEXDATE
30 HEXDATE := $(shell $(PERL) $(topdir)/now.pl $(SRCS) $(wildcard *.h))
31 endif
32 ifndef DATE
33 DATE := $(shell sh $(topdir)/gen-id.sh $(VERSION) $(HEXDATE))
34 endif
36 CFLAGS += -DDATE='"$(DATE)"'
37 LNXCFLAGS += -DDATE='"$(DATE)"'
39 rosh.o: rosh.h
41 rosh.lo: rosh.h
43 all: rosh.c32
45 allgrc: rosh.c32 rosh.lnx
47 tidy dist:
48 rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
50 clean: tidy
51 rm -f *.lnx
53 spotless: clean
54 rm -f *.lss *.c32 *.com
55 rm -f *~ \#*
57 install:
59 -include .*.d