• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
19LIBS = $(objdir)/com32/libutil/libutil.c32 \
20	$(objdir)/com32/lib/libcom32.c32
21
22VPATH = $(SRC)
23include $(MAKEDIR)/rosh.mk
24
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.
29ifndef HEXDATE
30HEXDATE := $(shell $(PERL) $(topdir)/now.pl $(SRCS) $(wildcard *.h))
31endif
32ifndef DATE
33DATE    := $(shell sh $(topdir)/gen-id.sh $(VERSION) $(HEXDATE))
34endif
35
36CFLAGS		+= -DDATE='"$(DATE)"'
37LNXCFLAGS	+= -DDATE='"$(DATE)"'
38
39all:	rosh.c32
40
41rosh.o:	rosh.h
42
43rosh.lo:	rosh.h
44
45allgrc:	rosh.c32 rosh.lnx
46
47tidy dist:
48	rm -f *.o *.lo *.a *.lst *.elf .*.d *.tmp
49
50clean: tidy
51	rm -f *.lnx
52
53spotless: clean
54	rm -f *.lss *.c32 *.com
55	rm -f *~ \#*
56
57install:
58
59-include .*.d
60