Initial code release
[external/syslinux.git] / com32 / rosh / Makefile
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.
12 ##
13 ## -----------------------------------------------------------------------
14
15 ##
16 ## ROSH Read Only Shell
17 ##
18
19 topdir = ../..
20 include MCONFIG
21
22 # from com32/sysdump/Makefile
23 # The DATE is set on the make command line when building binaries for
24 # official release.  Otherwise, substitute a hex string that is pretty much
25 # guaranteed to be unique to be unique from build to build.
26 ifndef HEXDATE
27 HEXDATE := $(shell $(PERL) $(topdir)/now.pl $(SRCS) $(wildcard *.h))
28 endif
29 ifndef DATE
30 DATE    := $(shell sh $(topdir)/gen-id.sh $(VERSION) $(HEXDATE))
31 endif
32
33 CFLAGS          += -DDATE='"$(DATE)"'
34 LNXCFLAGS       += -DDATE='"$(DATE)"'
35
36 rosh.o: rosh.h
37
38 rosh.lo:        rosh.h
39
40 all:    rosh.c32
41
42 allgrc: rosh.c32 rosh.lnx
43
44 tidy dist:
45         rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
46
47 clean: tidy
48         rm -f *.lnx
49
50 spotless: clean
51         rm -f *.lss *.c32 *.com
52         rm -f *~ \#*
53
54 install:
55
56 -include .*.d